libstdc++
std::reference_wrapper< _Tp > Class Template Reference

Detailed Description

template<typename _Tp>
class std::reference_wrapper< _Tp >

A convenience wrapper for creating a pair from two objects.

Parameters
xThe first object.
yThe second object.
Returns
A newly-constructed pair<> object of the appropriate type.

The standard requires that the objects be passed by reference-to-const, but LWG issue #181 says they should be passed by const value. We follow the LWG by default.

Definition at line 219 of file stl_pair.h.


The documentation for this class was generated from the following file: