Skip to content
VecPushFrontArrFastL

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)
    /// TAGS: Vec, PushFront, Range, Fast
    ///
    #define VecPushFrontArrFast(v, arr, count) VecPushFrontArrFastL((v), (arr), (count))
    
    ///
    #define VecMustPushFrontArrFastL(v, arr, count)                                                                        \
        do {                                                                                                               \
            if (!VecPushFrontArrFastL((v), (arr), (count))) {                                                              \
                LOG_FATAL("VecMustPushFrontArrFastL failed");                                                              \
            }                                                                                                              \
    /// TAGS: Str, PushFront, Range, LValue, Fast, Unordered
    ///
    #define StrPushFrontArrFastL(str, arr, count) VecPushFrontArrFastL((str), (arr), (count))
    
    ///
Last updated on