VecRemoveFast

Table of Contents

VecRemoveFast

Description

Remove item from vector at given index and store in given pointer. Order of elements inside vector is not guaranteed to be preserved. The implementation is faster in some scenarios that VecRemove

Parameters

NameDirectionDescription
vin,outVector to remove item from.
ptroutWhere removed item will be stored. If not provided then it’s equivalent to deleting the item at specified index.
idxinIndex in vector to remove item from.

Success

return

Failure

Does not return

Usage example (Cross-references)

    /// FAILURE : Does not return
    ///
    #define VecDeleteFast(v, idx) VecRemoveFast((v), (VEC_DATATYPE(v) *)NULL, (idx))
    
    ///

Share :