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::generator_range< T >::iterator Class Referencefinal

Public Types

using value_type = T
using reference = const T &
using pointer = const T *
using iterator_concept = std::input_iterator_tag

Public Member Functions

 iterator ()=default
 Default-constructs an iterator in an inactive state.
 iterator (const iterator &)=delete
 Copy construction is disabled to preserve single-pass generator semantics.
 iterator (iterator &&) noexcept=default
 Move-constructs an iterator, transferring ownership of the underlying generator.
 iterator (generator_factory_t factory)
iteratoroperator= (const iterator &)=delete
 Copy assignment is disabled because an iterator cannot be duplicated safely.
iteratoroperator= (iterator &&) noexcept=default
 Move-assigns an iterator, transferring ownership of the underlying generator.
iteratoroperator++ ()
iterator operator++ (int)
value_type operator* () const
pointer operator-> () const

Friends

bool operator== (const iterator &lhs, const iterator &rhs)
bool operator== (const iterator &it, std::default_sentinel_t)
bool operator!= (const iterator &lhs, const iterator &rhs)
bool operator!= (const iterator &it, std::default_sentinel_t s)

The documentation for this class was generated from the following file: