|
BDE 4.39.x Production Release
|
#include <bslmf_movableref.h>
The class template MovableRef<t_TYPE> provides a reference to a movable object of type t_TYPE. Put differently, a function receiving an object of this class template can transfer (move) the representation to a different object and leave the referenced object in an unspecified, although valid (i.e., it obeys all class invariants), state. With C++11 an r-value reference (t_TYPE&&) is used to represent the same semantics.
See bslmf_movableref
Public Member Functions | |
| operator t_TYPE & () const | |
Friends | |
| struct | MovableRefUtil |
|
inline |
Return a reference to the referenced object. In contexts where a reference to an object of type t_TYPE is needed, a MovableRef<t_TYPE> behaves like such a reference. For information on how to access the reference in contexts where no conversion can be used see MovableRefUtil::access().
|
friend |