JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
jh::concepts::indirectly_writable Concept Reference

Concept for types that support indirect write operations through dereference. More...

#include <jh/conceptual/iterator.h>

Concept definition

template<typename Out, typename T>
concept indirectly_writable =requires(Out &&o, T &&t) {
*o = std::forward<T>(t);
*std::forward<Out>(o) = std::forward<T>(t);
const_cast<const jh::concepts::iterator_reference_t<Out> &&>(*o) = std::forward<T>(t);
const_cast<const jh::concepts::iterator_reference_t<Out> &&>(*std::forward<Out>(o)) = std::forward<T>(t);
}
Concept for types that support indirect write operations through dereference.
Definition iterator.h:353
typename detail::iterator_reference_impl< I >::type iterator_reference_t
Deduces the reference type of a duck-typed iterator.
Definition iterator.h:312

Detailed Description

Concept for types that support indirect write operations through dereference.

Template Parameters
OutOutput iterator-like type to be tested.
TValue type assignable through the iterator.