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