Coroutines Evolution

Your first coroutine

Once you got familiar with the introduction to the coroutines, then I think it’s high time to actually implement your first co-routine object. This whole post is all about understanding how to implement co-routines and related objects (especially promise_type). Before we start the adventure, please ensure, that your compiler does support coroutines. (as of this …

Liked it? Share it...
Continue Reading
Coroutines Evolution

Coroutines introduction

And so it’s happened. After a long time of doubts, opposition, and preparation of this feature, WG21 agreed on how the coroutines should look like and it’s very likely that coroutines will come into C++ 20. Since it’s a big feature I think it’s good to start preparing and learning this now (remember there are …

Liked it? Share it...
Continue Reading
Core

Value categories – [l, gl, x, r, pr]values

So you have heard about lvalues and rvalues for sure, but there actually are also xvalues, prvalues and glvalues. It’s easy to get lost in it, so let’s have a look at what actually are those things. The picture shows the division of the value categories defined in the draft standard. In this particular case, …

Liked it? Share it...
Continue Reading