Top "Forwarding-reference" questions

A forwarding reference refers to a reference type that may either be an lvalue reference or an rvalue reference depending on its initializer.

What does auto&& tell us?

If you read code like auto&& var = foo(); where foo is any function returning by value of type …

c++ c++11 auto forwarding-reference
Is there a difference between universal references and forwarding references?

An argument to this function will bind to an rvalue reference: void f(int && i); However, an argument …

c++ templates perfect-forwarding universal-reference forwarding-reference
What does `auto && e` do in range-based for-loops?

Assuming my current rule when programming with range-based loops says Use for(auto const &e :...) or for(auto &…

c++ c++11 for-loop universal-reference forwarding-reference