#include <datatypebase.h>
ForwardingDataPtr contains type info and a pointer to an arbitrary generic object plus the information if the object shall be moved or not. ForwardingDataPtr is typically used as parameter type of a generic function which accepts any type of object and moves or copies the object to some other location.
Public Member Functions | |
ForwardingDataPtr () | |
MAXON_IMPLICIT | ForwardingDataPtr (const ConstDataPtr &ptr) |
MAXON_IMPLICIT | ForwardingDataPtr (MoveDataPtr &&ptr) |
template<typename T , typename = typename std::enable_if<!(STD_IS_REPLACEMENT(same, typename std::decay<T>::type, ConstDataPtr) || STD_IS_REPLACEMENT(same, typename std::decay<T>::type, MoveDataPtr))>::type> | |
ForwardingDataPtr (T &&value) | |
Result< Data > | GetData () |
Public Attributes | |
ConstDataPtr | data |
Bool | move |
MAXON_IMPLICIT ForwardingDataPtr | ( | const ConstDataPtr & | ptr | ) |
MAXON_IMPLICIT ForwardingDataPtr | ( | MoveDataPtr && | ptr | ) |
|
explicit |
ConstDataPtr data |
Bool move |