Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The std::reference_wrapper is a simple indirection wrapper that can implicitly convert to the wrapped type. std::reference_wrapper has special interactions with std::make_pair and std::make_tuple (where the type is deduced as T&) and can force reference semantics for APIs where the default behaviour involves a copy. Compiler Explorer link: https://lnkd.in/d7QsCQET #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories