VecPushFrontArrFastR
Description
Prepend a range at the front using fast (order-not-preserving) placement. R-value form.
Success
Returns true. Same state effects as VecPushFrontArrFastL minus the source-zeroing step; the source range is left untouched.
Failure
Returns false on allocation failure. The vector is unchanged.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
VecInt.c:300:
values[i] = (i32)extract_u32(data, offset, data_size);
}
VecPushFrontArrFastR(vec, values, count);
}
break;- In
Insert.h:882:
#define VecMustPushFrontArrFastR(v, arr, count) \
do { \
if (!VecPushFrontArrFastR((v), (arr), (count))) { \
LOG_FATAL("VecMustPushFrontArrFastR failed"); \
} \- In
Insert.h:319:
#define StrPushFrontManyFast(...) OVERLOAD(StrPushFrontManyFast, __VA_ARGS__)
#define StrPushFrontManyFast_2(str, zstr) \
_Generic((zstr), Zstr: VecPushFrontArrFastR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecPushFrontArrFastR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
#define StrPushFrontManyFast_3(str, cstr, cstr_len) \
_Generic((cstr), Zstr: VecPushFrontArrFastR((str), (Zstr)(cstr), (cstr_len)), char *: VecPushFrontArrFastR((str), (Zstr)(cstr), (cstr_len)))- In
Insert.h:321:
_Generic((zstr), Zstr: VecPushFrontArrFastR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecPushFrontArrFastR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
#define StrPushFrontManyFast_3(str, cstr, cstr_len) \
_Generic((cstr), Zstr: VecPushFrontArrFastR((str), (Zstr)(cstr), (cstr_len)), char *: VecPushFrontArrFastR((str), (Zstr)(cstr), (cstr_len)))
///
- In
Insert.h:791:
/// TAGS: Str, PushFront, Range, RValue, Fast, Unordered
///
#define StrPushFrontArrFastR(str, arr, count) VecPushFrontArrFastR((str), (arr), (count))
///
Last updated on