Skip to content
VecPushFrontArrFastR

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)
                        values[i] = (i32)extract_u32(data, offset, data_size);
                    }
                    VecPushFrontArrFastR(vec, values, count);
                }
                break;
    #define VecMustPushFrontArrFastR(v, arr, count)                                                                        \
        do {                                                                                                               \
            if (!VecPushFrontArrFastR((v), (arr), (count))) {                                                              \
                LOG_FATAL("VecMustPushFrontArrFastR failed");                                                              \
            }                                                                                                              \
    #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)))
        _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)))
    
    ///
    /// TAGS: Str, PushFront, Range, RValue, Fast, Unordered
    ///
    #define StrPushFrontArrFastR(str, arr, count) VecPushFrontArrFastR((str), (arr), (count))
    
    ///
Last updated on