Description
This method is only available when marshalling std::vector and std::array objects, and provides a way to marshal individual entries to the bound collection. This is useful if large collections are bound, but not all the elements in the collection need to be modified. Note that marshalling a collection is less efficient when done one element at a time, so this method should only be used where it is known that a significant number of the elements in the bound collection do not need to be accessed. In other cases, the entire collection should be marshalled, and elements accessed from the marshalled collection.
Usage (std::vector, std::array only):
void SetElement(typename std::vector<ElementType, Alloc>::size_type index, const ElementType& element) const
void SetElement(typename std::vector<ElementType, Alloc>::size_type index, ElementType&& element) const
Argument list
- index [size_type]
- The index of the position in the bound collection to marshal the value into. The specified index must refer to an exising entry in the collection.
- element [ElementType]
- The source object to marshal into the target collection