Luna::move_construct_type
void move_construct_type(typeinfo_t type, void *dst, void *src)
Move constructs one instance of the specified type.
The construction is performed as follows:1. If type
is a trivially move constructable type, use memcpy to move instance data.
-
If
type
is a non-trivially-move-constructable type with user defined move constructor function, calls the function. -
If
type
is a non-trivially-move-constructable type without user defined move constructor function, move constructs every property of the structure recursively.
Parameters
-
in type
The type object.
-
in dst
The pointer to the instance to be move constructed.
-
in src
The pointer to the instance to move data from.
Valid Usage
-
type
must specify one valid type object and cannot be a generic structure type. -
dst
andsrc
must specify one valid memory address.