VecPushFrontArrR

Table of Contents

VecPushFrontArrR

Description

Push a complete array into this vector front, with R-value semantics.

Note

Unlike VecPushFrontArrL, this does NOT zero out the source array after insertion.

Parameters

NameDirectionDescription
vin,outVector to insert array items into.
arrinArray to be inserted.
countinNumber (non-zero) of items in array.

Success

v

Failure

Does not return on failure

Usage example (Cross-references)

    /// FAILURE : NULL
    ///
    #define StrPushFrontCstr(str, cstr, len) VecPushFrontArrR((str), (cstr), (len))
    
    ///
    // Push an array to the front of empty vector
    int values[] = {10, 20, 30, 40, 50};
    VecPushFrontArrR(&vec, values, 5);
    
    // Check length
    // Push another array to the front
    int more_values[] = {60, 70, 80};
    VecPushFrontArrR(&vec, more_values, 3);
    
    // Check length

Share :