Function CSTL_vector_insert

Source
pub unsafe extern "C" fn CSTL_vector_insert(
    context: CSTL_VectorCtx,
    where_: CSTL_VectorIter,
    count: usize,
    value: *const c_void,
    alloc: *mut CSTL_Alloc,
) -> CSTL_VectorIter
Expand description

Inserts count copies of value into the vector before where and returns an iterator to the first newly inserted element.

If count > CSTL_vector_max_size(context.type) - CSTL_vector_size(context) (vector too long) this function has no effect and returns CSTL_vector_end(context).