VecPushFrontArr
Description
Prepend count elements from arr at the front of the vector, preserving order and taking ownership of the source range when no deep-copy handler is configured. Default unsuffixed form aliasing to the L (ownership) variant. See VecPushFrontArrL for the full SUCCESS/FAILURE contract.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
VecCharPtr.c:334:
}
VecPushFrontArr(vec, temp_strings, count);
// Clean up temp strings
- In
VecStr.c:335:
}
VecPushFrontArr(vec, temp_strings, count);
}
break;- In
Vec.Insert.c:159:
// Test VecPushFrontArr function
bool test_vec_push_front_arr(void) {
WriteFmt("Testing VecPushFrontArr\n");
// Create a vector of integers
- In
Insert.h:847:
#define VecMustPushFrontArr(v, arr, count) \
do { \
if (!VecPushFrontArr((v), (arr), (count))) { \
LOG_FATAL("VecMustPushFrontArr failed"); \
} \
Last updated on