I stumbled on the following code, and as I understand it, it shows a const rvalue reference. What is the use of such a construct, and what do it gain over a normal const lvalue reference?
void foo(const bar&& b);
I stumbled on the following code, and as I understand it, it shows a const rvalue reference. What is the use of such a construct, and what do it gain over a normal const lvalue reference?
void foo(const bar&& b);