VecRemoveRange

Table of Contents

VecRemoveRange

Description

Remove data from vector in given range [start, start + count) Order of elements is guaranteed to be preserved.

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 StrRemoveRange(str, rd, start, count) VecRemoveRange((str), (rd), (start), (count))
    
    ///
    /// FAILURE : Does not return
    ///
    #define VecDeleteRange(v, start, count) VecRemoveRange((v), (VEC_DATATYPE(v) *)NULL, (start), (count))
    
    ///

Share :