Programming Languages, Cpp, Software Development, Coding, Optimization.
reference and const-reference overloads: As you can see, prvalues bind to const reference (line 9), modifiable lvalues to reference (line 12), xvalues to const reference (line 13) and non-modifiable lvalues to const reference (line 16). If we add a third overload that accepts an rvalue reference,