Would someones please give an example of "modifiable rvalue"? My understanding is rvalue appeared on the right side of "=" in an expression. I tested the following example but I am not sure whether it explains the "modifiable rvalue"
int i=1
int &j = i;
j=2; //i == 2,
Aucun commentaire:
Enregistrer un commentaire