VecRemoveRangeFast
- Macro
- August 22, 2025
Table of Contents
VecRemoveRangeFast
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
Name | Direction | Description |
---|---|---|
v | in,out | Vector to remove item from. |
ptr | out | Where removed data will be stored. If not provided then it’s equivalent to deleting the items in specified range. |
start | in | Index in vector to removing items from. |
count | in | Number of items from starting index. |
Success
return
Failure
Does not return
Usage example (Cross-references)
- In
Remove.h:169
:
/// FAILURE : Does not return
///
#define VecDeleteRangeFast(v, start, count) VecRemoveRangeFast((v), (VEC_DATATYPE(v) *)NULL, (start), (count))