Daily bit(e) of C++ | std::generator
Daily bit(e) of C++ #370, The C++23 type for generator coroutines: std::generator.
The C++23 std::generator is a coroutine type for implementing generator coroutines.
The type implements a view interface and comes with a std::pmr::generator alias for use with the PMR allocator.
The capability of yielding ranges of values makes the std::generator particularly useful for recursive traversals.