Skip to content
VecInsertRangeFast

VecInsertRangeFast

Description

Insert a contiguous range of count elements at idx using fast (order-not-preserving) placement, taking ownership of the source range when no deep-copy handler is configured. Default unsuffixed form aliasing to the L (ownership) variant. See VecInsertRangeFastL for the full SUCCESS/FAILURE contract.

Usage example (Cross-references)

Usage examples (Cross-references)
                    }
    
                    VecInsertRangeFast(vec, temp_strings, index, count);
    
                    // Clean up temp strings
                    }
    
                    VecInsertRangeFast(vec, temp_strings, index, count);
                }
                break;
    // untouched prefix [0, idx) is intact.
    bool test_vec_insert_range_fast_overflowing_tail(void) {
        WriteFmt("Testing VecInsertRangeFast with count > (length - idx)\n");
    
        typedef Vec(int) IntVec;
    #define VecMustInsertRangeFast(v, varr, idx, count)                                                                    \
        do {                                                                                                               \
            if (!VecInsertRangeFast((v), (varr), (idx), (count))) {                                                        \
                LOG_FATAL("VecMustInsertRangeFast failed");                                                                \
            }                                                                                                              \
Last updated on