The series continue.
C++ coroutines: Building a result holder for movable types
by Raymond Chen
From the article:
One of the pieces we need for the simple_promise we use to construct a coroutine is what we have been calling the “result holder”. This is basically a variant that starts out empty, and can atomically transition to holding either the result of a successful coroutine, an exception pointer for a failed coroutine...
Add a Comment
Comments are closed.