Description

Marshals the source object to a new or existing object. This method performs a move operation on the source data if the source object was bound using a non-const rvalue reference, such as from a temporary object or the result of an std::move operation, otherwise a copy is performed. After calling this method, the source object should be considered invalid in the same way as if an std::move operation had been performed, and no further attempts should be made to retrieve its value. Different template specializations provide different overloads of this method, however the differences and applicability of each overload are detailed in the usage section below.

Usage (All types):

ContainerType Get() const

Return value

[ContainerType]
The newly constructed object populated with data marshalled from the source object.

Usage (Assignable types only):

void Get(ContainerType& targetObject) const

Argument list

targetObject
The target object to marshal the source data into.

See also