|
|
|
|
@ -2840,7 +2840,7 @@ For advanced uses (only), where you really need to optimize for rvalues passed t
|
|
|
|
|
Avoid "esoteric techniques" such as:
|
|
|
|
|
|
|
|
|
|
* Passing arguments as `T&&` "for efficiency".
|
|
|
|
|
Most rumors about performance advantages from passing by `&&` are false or brittle (but see [F.18](#Rf-consume) and [F.19](#Rf-forward).)
|
|
|
|
|
Most rumors about performance advantages from passing by `&&` are false or brittle (but see [F.18](#Rf-consume) and [F.19](#Rf-forward)).
|
|
|
|
|
* Returning `const T&` from assignments and similar operations (see [F.47](#Rf-assignment-op).)
|
|
|
|
|
|
|
|
|
|
##### Example
|
|
|
|
|
|