do not click

Meeting C++ 2023   |  Online   |  Training   |  Books   |  Survey   |  Job fair   |  Advertising   |  Jobposting   |  Login

Meeting C++ 2023 - Universal/Forwarding References - A Key to More Modern C++

Conference | Live Schedule | Talks | Get your ticket | Set your timezone

Nicolai Josuttis

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

Copyright Meetingcpp GmbH Imprint Piwik Opt out Privacy Policy