Description
This method is only available when marshalling std::vector and std::array objects, and provides a way to marshall a raw array as the full contents of the bound collection. Individual elements will still be marshalled if required. This is the most efficient way to initalize the contents of the std::vector and std::array collections. This method will always perform a copy of the source elements. To perform a move of the source data, use the AssignFromWithMove method.
Usage (std::vector):
void AssignFrom(const ElementType* data, size_t count) const
Argument list
- data [ElementType*]
- Pointer to a set of one or more consecutive elements to set as the content for the target container
- size_t [count]
- The number of consecutive entries to marshal from the source address
Usage (std::array):
void AssignFrom(const ElementType* data) const
Argument list
- data [ElementType*]
- Pointer to a set consecutive elements to set as the content for the target array. Must contain at least as many elements as the array.