libstdc++
std::reference_wrapper< _Tp > Class Template Reference
Inheritance diagram for std::reference_wrapper< _Tp >:
Inheritance graph

Public Types

typedef _Tp type
 

Public Member Functions

_Tp & get () const
 
 operator _Tp & () const
 
template<typename... _Args>
result_of< _M_func_type(_Args...)>
::type 
operator() (_Args &...__args) const
 
reference_wrapperoperator= (const reference_wrapper< _Tp > &__inref)
 
 reference_wrapper (_Tp &__indata)
 
 reference_wrapper (const reference_wrapper< _Tp > &__inref)
 

Detailed Description

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

reference_wrapper

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 426 of file tr1_impl/functional.


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