libcoro  1.0
Coroutine support library for C++20

◆ operator bool()

template<typename T , coro_allocator Alloc = std_allocator>
coro::generator< T, Alloc >::operator bool ( ) const
inlineexplicit

Determines state of generator.

Return values
true,generatoris generating
false,generatoris done
Note
if you call the generator, this state is not updated until you actually access the returned (future) value.

Definition at line 207 of file generator.h.