Description
This method is only available when marshalling std::vector objects, and provides equivalent functionality to the corresponding method on the native container as defined in the C++ standard. Note that this method does not marshal the container itself in order to perform the operation. This method may be useful if only a subset of elements in the collection are being marshalled, through calls to the SetElement method.
Usage (std::vector, std::array with copyable element types only):
void resize(size_type newSize, const ElementType& insertElement = ElementType()) const
Argument list
- newSize [size_type]
- The number of elements to allocate in the bound collection
- insertElement [ElementType]
- The source object to marshal into each created entry in the bound collection