VecPushFrontArrFastL
Description
Prepend a range at the front using fast (order-not-preserving) placement. L-value form.
Success
Returns true. The vector length grows by count; the prepended elements occupy [0, count); previously-front elements are now somewhere in the tail (no defined relative order). When the vector has no copy_init handler, the source bytes have been zeroed.
Failure
Returns false on allocation failure. Both vector and source are unchanged.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Insert.h:378:
/// TAGS: Vec, PushFront, Range, Fast
///
#define VecPushFrontArrFast(v, arr, count) VecPushFrontArrFastL((v), (arr), (count))
///
- In
Insert.h:865:
#define VecMustPushFrontArrFastL(v, arr, count) \
do { \
if (!VecPushFrontArrFastL((v), (arr), (count))) { \
LOG_FATAL("VecMustPushFrontArrFastL failed"); \
} \- In
Insert.h:770:
/// TAGS: Str, PushFront, Range, LValue, Fast, Unordered
///
#define StrPushFrontArrFastL(str, arr, count) VecPushFrontArrFastL((str), (arr), (count))
///
Last updated on