CXXIter 0.2
|
Generator that C++20 coroutines passed to CXXIter::IterApi::generateFrom() have to return. This generator supports exceptions, co_yield for producing an arbitrary amount of elements, and can take references as results from coroutines - as long as they live long enough until used. More...
#include <Generator.h>
Classes | |
struct | promise_type |
Public Types | |
using | value_type = T |
using | Handle = std::coroutine_handle< promise_type > |
Public Member Functions | |
Generator (const Handle coroutine) | |
Generator (const Generator &)=delete | |
Generator & | operator= (const Generator &)=delete |
Generator (Generator &&other) noexcept | |
Generator & | operator= (Generator &&other) noexcept |
IterValue< T > | next () |
Generator that C++20 coroutines passed to CXXIter::IterApi::generateFrom() have to return. This generator supports exceptions, co_yield for producing an arbitrary amount of elements, and can take references as results from coroutines - as long as they live long enough until used.
Definition at line 21 of file Generator.h.
using CXXIter::Generator< T >::Handle = std::coroutine_handle<promise_type> |
Definition at line 25 of file Generator.h.
using CXXIter::Generator< T >::value_type = T |
Definition at line 23 of file Generator.h.
|
inlineexplicit |
Definition at line 46 of file Generator.h.
|
inline |
Definition at line 48 of file Generator.h.
|
inlinenoexcept |
Definition at line 57 of file Generator.h.
|
inline |
Definition at line 66 of file Generator.h.
|
inlinenoexcept |
Definition at line 60 of file Generator.h.