This function removes an element of a vector from the layout and all indexes the element is included into.
MCO_RET classname_fieldname_erase( /*IN*/ classname *handle, /*IN*/ uint2 index );
| handle | A pointer to a classname handle |
|
index |
A |
The erase method removes an element of a vector from the layout and all indexes the element is included into. Note that the vector size remains unchanged. If an attempt is made to get the erased element, the runtime returns a null pointer as a result. Also note that the erase method is only generated for vectors of structures and strings, not for vectors of basic types. Like ‘C’ arrays, vectors are counted from zero.
| MCO_S_OK | The vector element was erased successfully |
| MCO_E_INDEXLIMIT | Index is out of range |