3 ms·
Yes. It normally indicates an rvalue reference, but in the context of deducing types (for example, in template instantiation or auto deduction), it can mean a f
by magnio 3y ago
Yes. It normally indicates an rvalue reference, but in the context of deducing types (for example, in template instantiation or auto deduction), it can mean a forwarding reference and has a rather special meaning.[1][2]
[1]: https://eli.thegreenplace.net/2014/perfect-forwarding-and-universal-references-in-c#reference-collapsing-and-special-type-deduction-for-rvalues https://eli.thegreenplace.net/2014/perfect-forwarding-and-un...
[2]: https://en.cppreference.com/w/cpp/language/reference#Forwarding_references https://en.cppreference.com/w/cpp/language/reference#Forward...