+ 1

References vs Pointers (also r-references)

I know how do pointers and refernces work, but which one is faster and more efficient? I'd also like an explanation about when do you use rvalues references please... (to clarify, are r-values just the values themselves without the variable name they are stored in? for example: int a = 2; // a = lvalue, 2 = rvalue).

22nd Aug 2021, 2:00 PM
Yahel
Yahel - avatar
1 Antwort