Function CSTL_vector_construct

Source
pub unsafe extern "C" fn CSTL_vector_construct(
    new_instance: *mut CSTL_VectorVal,
)
Expand description

Initializes the vector pointed to by new_instance, but does not allocate any memory.

An initialized vector can be trivially destroyed without leaks as long as no functions that allocate (push, insert, reserve, etc.) have been called on it.

Re-initializing a vector with a backing memory allocation will leak the old memory allocation.