Skip to content
VecPushFrontArr

VecPushFrontArr

Description

Prepend count elements from arr at the front of the vector, preserving order and taking ownership of the source range when no deep-copy handler is configured. Default unsuffixed form aliasing to the L (ownership) variant. See VecPushFrontArrL for the full SUCCESS/FAILURE contract.

Usage example (Cross-references)

Usage examples (Cross-references)
                    }
    
                    VecPushFrontArr(vec, temp_strings, count);
    
                    // Clean up temp strings
                    }
    
                    VecPushFrontArr(vec, temp_strings, count);
                }
                break;
    // Test VecPushFrontArr function
    bool test_vec_push_front_arr(void) {
        WriteFmt("Testing VecPushFrontArr\n");
    
        // Create a vector of integers
    #define VecMustPushFrontArr(v, arr, count)                                                                             \
        do {                                                                                                               \
            if (!VecPushFrontArr((v), (arr), (count))) {                                                                   \
                LOG_FATAL("VecMustPushFrontArr failed");                                                                   \
            }                                                                                                              \
Last updated on