|
xentara-utils v2.0.6
The Xentara Utility Library
|
A coroutine handle suitable for generators. More...
#include <xentara/utils/coro/Generator.hpp>
Inheritance diagram for xentara::utils::coro::Generator< Type >:Classes | |
| class | Iterator |
| The iterator type used to access the generated values. More... | |
Public Types | |
| using | promise_type = Promise |
| The promise type for coroutines that return this type. | |
Public Member Functions | |
| Generator ()=delete | |
| This type is not user instantiable. | |
| internal auto | begin () -> Iterator |
| Returns an object that can be used to iterate over the remaining members. | |
| constexpr auto | end () noexcept -> std::default_sentinel_t |
| Returns an sentinel that can be used to determine if an iterator is exhausted. | |
A coroutine handle suitable for generators.
| Type | The type of data to generate |
| using xentara::utils::coro::Generator< Type >::promise_type = Promise |
The promise type for coroutines that return this type.
|
delete |
This type is not user instantiable.
| auto xentara::utils::coro::Generator< Type >::begin | ( | ) | -> Iterator |
Returns an object that can be used to iterate over the remaining members.
| ... | The generator raised an exception generating the first value |
|
constexprnoexcept |
Returns an sentinel that can be used to determine if an iterator is exhausted.