...

/

Reference Wrappers

Reference Wrappers

C++ takes reference functionality one step higher by introducing reference wrappers!

We'll cover the following...

A reference wrapper is a copy-constructible and copy-assignable wrapper for an object of type&, which is defined in the header <functional>. It is an object that behaves like a reference, but can be copied. Contrary to classic ...