Prettiest C++ generator/coroutine implementation.