VecRemoveRangeFast

Table of Contents

VecRemoveRangeFast

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 data will be stored. If not provided then it’s equivalent to deleting the items in specified range.
startinIndex in vector to removing items from.
countinNumber of items from starting index.

Success

return

Failure

Does not return

Usage example (Cross-references)

    /// FAILURE : Does not return
    ///
    #define VecDeleteRangeFast(v, start, count) VecRemoveRangeFast((v), (VEC_DATATYPE(v) *)NULL, (start), (count))
    

Share :