The return value for generator functions. More...
#include <generator.hpp>
Public Member Functions | |
| operator bool () const | |
| Check if the yield object contains a value. | |
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. |
|
inline |
Check if the yield object contains a value.