Skip to content
VecPushBackArr

VecPushBackArr

Description

Append count elements from arr to the end of the vector, taking ownership of the source range when no deep-copy handler is configured. Default unsuffixed form aliasing to the L (ownership) variant. See VecPushBackArrL for the full SUCCESS/FAILURE contract.

Usage example (Cross-references)

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