A synchronous coroutine generator that lazily yields a sequence of values.
Synopsis
Declared in <folly/coro/Generator.h>
template<typename T>
class Generator;
Types
Name |
Description |
Input iterator over the values produced by the generator. |
|
Coroutine promise type that drives a |
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the generator and its underlying coroutine, if any. |
Assignment operators |
|
Starts the generator and returns an iterator to the first element. |
|
Returns an iterator marking the end of the sequence. |
|
Swaps the state of this generator with another. |
Friends
Name |
Description |
Coroutine promise type that drives a |
|
Builds a |