Template Struct Generator

Nested Relationships

Nested Types

Struct Documentation

template<typename T>
struct Generator

Public Types

using handle_type = std::coroutine_handle<promise_type>

Public Functions

inline explicit Generator(handle_type h)
Generator(const Generator&) = delete
Generator &operator=(const Generator&) = delete
Generator(Generator&&) = default
Generator &operator=(Generator&&) = default
inline ~Generator()
inline explicit operator bool()
inline T operator()()

Public Members

handle_type h_
struct promise_type

Public Functions

inline Generator get_return_object()
inline std::suspend_always initial_suspend()
inline std::suspend_always final_suspend() noexcept
inline void unhandled_exception()
template<std::convertible_to<T> From>
inline std::suspend_always yield_value(From &&from)
inline void return_void()

Public Members

T value
std::exception_ptr exception