cpp/coroutine/generator/~generator

Destructs the generator object.

Given as the underlying coroutine object, equivalent to:

Note, that destroying the root generator effectively destroys the entire stack of yielded generators, because the ownership of recursively yielded generators is held in awaitable objects in the coroutine frame of the yielding generator.