Conference | Live Schedule | Talks | Get your ticket | Set your timezone
Track C on-site
Universal/forwarding references were introduced in C++11 mainly for perfect forwarding of move semantics.
However, over time they became more and more a key feature in various situations of C++.
One example is the implementation for the range-based for loop.
With C++20 they even get an important for ordinary application programmers.
You need them to be able to implement generic code that works for both containers and views.
Time to look carefully at <code>T&&</code>, <code>auto&&</code> (and maybe their cousin <code>decltype(auto)</code>) in detail.
Please login to comment