mercredi 23 mai 2018

Difference between lvalue reference and rvalue reference

I have been studying addition of rvalue reference in C++11. It wasn't straightforward but I feel like I am finally starting to get a grasp of it. However there is one particular instance where I am confused. Specifically I don't get what is the meaning of 'b' in this example:

int a = 27;
int&& b = 27;

Aucun commentaire:

Enregistrer un commentaire