Quantcast
Channel: Simplify C++!
Viewing all articles
Browse latest Browse all 163

New C++ Features – templated rvalue References and std::forward

$
0
0
Combining rvalue references with templated function parameters or `auto` behaves quite differently than "normal" rvalue references. Together with the utility function template `std::forward` they allow something called "perfect forwarding" and are therefore also called forwarding references.

Viewing all articles
Browse latest Browse all 163

Trending Articles