MADNESS
version 0.9
|
Wrapper for movable objects. More...
#include <move.h>
Public Member Functions | |
MoveWrapper (T &t) | |
Constructor. More... | |
MoveWrapper (const MoveWrapper< T > &other) | |
Copy constructor. More... | |
MoveWrapper< T > & | operator= (const MoveWrapper< T > &other) |
Assignment operator. More... | |
T & | get () const |
Get the wrapped object reference. More... | |
T * | get_pointer () const |
Get the wrapped object pointer. More... | |
Wrapper for movable objects.
This object wraps movable objects. It may be used to implement move constructor and assignment operators. It may be used to set futures.
T | The object type |
|
inline |
Constructor.
t | The object to be wrapped |
|
inline |
Copy constructor.
other | The object to be copied |
|
inline |
Get the wrapped object reference.
Referenced by madness::unwrap_move().
|
inline |
Get the wrapped object pointer.
|
inline |
Assignment operator.
other | The object to be copied |