xentara-utils v1.2.1
Xentara utilities library
|
#include <coro/Generator.hpp>
Public Types | |
using | value_type = std::remove_reference_t< Type > |
The value type. | |
using | difference_type = std::ptrdiff_t |
Dummy type for non-existend difference type. | |
using | reference = std::add_lvalue_reference_t< Type > |
A reference to a value. | |
using | pointer = std::add_pointer_t< Type > |
A pointer to a value. | |
using | iterator_concept = std::input_iterator_tag |
The iterator concept. | |
using | iterator_category = iterator_concept |
The iterator category, for use in pre-C++20 code. | |
Public Member Functions | |
Iterator () noexcept=default | |
Default constructor. | |
Iterator (std::default_sentinel_t) noexcept | |
Conversion constructor for a sentinel. | |
auto | operator== (const Iterator &rhs) const -> bool |
Equality operator. | |
auto | operator++ () -> Iterator & |
Pre-increment operator. | |
auto | operator++ (int) -> Iterator |
Post-increment operator. | |
auto | operator* () noexcept -> reference |
Indirection operator. | |
auto | operator-> () noexcept -> pointer |
Member access operator. | |
using xentara::utils::coro::Generator< Type >::Iterator::difference_type = std::ptrdiff_t |
Dummy type for non-existend difference type.
using xentara::utils::coro::Generator< Type >::Iterator::iterator_category = iterator_concept |
The iterator category, for use in pre-C++20 code.
using xentara::utils::coro::Generator< Type >::Iterator::iterator_concept = std::input_iterator_tag |
The iterator concept.
using xentara::utils::coro::Generator< Type >::Iterator::pointer = std::add_pointer_t<Type> |
A pointer to a value.
using xentara::utils::coro::Generator< Type >::Iterator::reference = std::add_lvalue_reference_t<Type> |
A reference to a value.
using xentara::utils::coro::Generator< Type >::Iterator::value_type = std::remove_reference_t<Type> |
The value type.
|
defaultnoexcept |
Default constructor.
This constructor creates an invalid iterator. It is suitable as a sentinel for algorithms that require the sentinel to be of the same type as the iterator.
|
noexcept |
Conversion constructor for a sentinel.
This constructor creates an invalid iterator suitable for use as a sentinel for algorithms that require the sentinel to be of the same type as the iterator.
|
noexcept |
Indirection operator.
auto xentara::utils::coro::Generator< Type >::Iterator::operator++ | ( | ) | -> Iterator & |
Pre-increment operator.
Moves the iterator forward by one position.
... | The generator raised an exception generating the next value |
auto xentara::utils::coro::Generator< Type >::Iterator::operator++ | ( | int | ) | -> Iterator |
Post-increment operator.
Moves the iterator forward by one position.
... | The generator raised an exception generating the next value |
|
noexcept |
Member access operator.
Gives access to a class member of the object member at the current position.
auto xentara::utils::coro::Generator< Type >::Iterator::operator== | ( | const Iterator & | rhs | ) | const -> bool |
Equality operator.