c++ - C++20 coroutines: need a function that uses co_yield ...
Jun 24, 2020· Basically, he wants to understand how the coroutine machinery works. – Nicol Bolas. Jun 24 '20 at 22:35 | Show 4 more comments. 2 Answers Active Oldest Votes. 4 Here's a minimal working example with gcc 10.1 of a coroutine myCoroutineFunction that uses just co_yield and does not have a co_return. It uses a counted for loop. A range for loop ...
Lee mas