VecInsertRangeFast
Description
Insert a contiguous range of count elements at idx using fast (order-not-preserving) placement, taking ownership of the source range when no deep-copy handler is configured. Default unsuffixed form aliasing to the L (ownership) variant. See VecInsertRangeFastL for the full SUCCESS/FAILURE contract.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
VecCharPtr.c:433:
}
VecInsertRangeFast(vec, temp_strings, index, count);
// Clean up temp strings
- In
VecStr.c:417:
}
VecInsertRangeFast(vec, temp_strings, index, count);
}
break;- In
Vec.Insert.c:521:
// untouched prefix [0, idx) is intact.
bool test_vec_insert_range_fast_overflowing_tail(void) {
WriteFmt("Testing VecInsertRangeFast with count > (length - idx)\n");
typedef Vec(int) IntVec;- In
Insert.h:743:
#define VecMustInsertRangeFast(v, varr, idx, count) \
do { \
if (!VecInsertRangeFast((v), (varr), (idx), (count))) { \
LOG_FATAL("VecMustInsertRangeFast failed"); \
} \
Last updated on