Contains a reference to an object of type T
.
More...
#include <ref.hpp>
Public Types | |
typedef T | type |
Public Member Functions | |
BOOST_FORCEINLINE T & | get () const |
BOOST_FORCEINLINE T * | get_pointer () const |
BOOST_FORCEINLINE | operator T & () const |
BOOST_FORCEINLINE | reference_wrapper (T &t) |
Private Attributes | |
T * | t_ |
Contains a reference to an object of type T
.
reference_wrapper
is primarily used to "feed" references to function templates (algorithms) that take their parameter by value. It provides an implicit conversion to T&
, which usually allows the function templates to work on references unmodified.
Definition at line 59 of file core/ref.hpp.
typedef T boost::reference_wrapper< T >::type |
Type T
.
Definition at line 65 of file core/ref.hpp.
|
inlineexplicit |
Constructs a reference_wrapper
object that stores a reference to t
.
Definition at line 73 of file core/ref.hpp.
|
inline |
|
inline |
Definition at line 106 of file core/ref.hpp.
|
inline |
Definition at line 93 of file core/ref.hpp.
|
private |
Definition at line 110 of file core/ref.hpp.