Skip to content

VECTOR_alloc_size

BigETI edited this page Jul 17, 2018 · 2 revisions

Description

Get the allocated size of the vector. Use VECTOR_size to get the size of the vector.

Returns

Allocated size of the vector

Syntax

VECTOR_alloc_size(Vector:vector)

Example

new Vector:vector;
VECTOR_push_back_val(vector, 10);
VECTOR_push_back_val(vector, 20);
VECTOR_push_back_val(vector, 30);
printf("Allocated size of vector: %d", VECTOR_alloc_size(vector));

Clone this wiki locally