14 Oct
2017
14 Oct
'17
3:13 p.m.
On Sat, Oct 14, 2017 at 8:03 AM, Seth via Boost
ยน coroutines are not zero cost
That depends. I've done some investigation into the Coroutines TS described in n4134. For coroutines whose scope is strictly limited to the calling function, they can be implemented with zero cost (no dynamic allocation and comparable assembly output). The expository code that Phil provided certainly falls into that category. Thanks