VecPushFrontArrR
- Macro
- August 22, 2025
Table of Contents
VecPushFrontArrR
VecPushFrontArrR
Description
Push a complete array into this vector front, with R-value semantics.
Note
Unlike VecPushFrontArrL, this does NOT zero out the source array after insertion.
Parameters
Name | Direction | Description |
---|---|---|
v | in,out | Vector to insert array items into. |
arr | in | Array to be inserted. |
count | in | Number (non-zero) of items in array. |
Success
v
Failure
Does not return on failure
Usage example (Cross-references)
- In
Insert.h:126
:
/// FAILURE : NULL
///
#define StrPushFrontCstr(str, cstr, len) VecPushFrontArrR((str), (cstr), (len))
///
- In
Vec.Insert.c:164
:
// Push an array to the front of empty vector
int values[] = {10, 20, 30, 40, 50};
VecPushFrontArrR(&vec, values, 5);
// Check length
- In
Vec.Insert.c:176
:
// Push another array to the front
int more_values[] = {60, 70, 80};
VecPushFrontArrR(&vec, more_values, 3);
// Check length