libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
z::core::yield< T > Struct Template Reference

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.
 

Detailed Description

template<typename T>
struct z::core::yield< T >

The return value for generator functions.

Generator functions use this struct to both return values, and to indicate when the generator is finished.

Template Parameters
TThe type of data that the generator returns.

The documentation for this struct was generated from the following file: