|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Aleph::Generator<T>: lazy sequences with C++20 coroutines. More...
#include <cctype>#include <iostream>#include <stdexcept>#include <string>#include <vector>#include <ah-generator.H>#include <print_rule.H>Go to the source code of this file.
Functions | |
| int | main () |
Aleph::Generator<T>: lazy sequences with C++20 coroutines.
Aleph::Generator<T> (see ah-generator.H) turns a function that co_yields values into a lazy, single-pass sequence you can drive with an ordinary range-for. This example walks through the three reasons to reach for it:
break stops production outright.for and re-co_yield, chaining lazy stages the way map/filter chain in ahFunctional.H.Definition in file generator_example.cc.
| int main | ( | void | ) |
Definition at line 194 of file generator_example.cc.
References Aleph::blossom_maximum_cardinality_matching().