nstd_vec_cap

Function nstd_vec_cap 

Source
#[unsafe(no_mangle)]
pub const extern "C" fn nstd_vec_cap(vec: &NSTDVec<'_>) -> NSTDUInt
Available on crate feature vec only.
Expand description

Returns a vector’s capacity.

This is the max number of values the vector can contain without reallocating.

§Parameters:

  • const NSTDVec *vec - The vector.

§Returns

NSTDUInt cap - The vector’s capacity.