The return value for generator functions. More...
#include <generator.hpp>
Public Attributes | |
bool | done |
Whether the generator has run out of values to return. | |
T | value |
The next value that the generator will return. | |
The return value for generator functions.
Generator functions use this struct to both return values, and to indicate when the generator is finished.
T | The type of data that the generator returns. |