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.
Compiler Explorer link: https://compiler-explorer.com/z/Eqdn6Yqss