Vector 0.0.2
Loading...
Searching...
No Matches
Properties

Access properties of a vector. More...

Collaboration diagram for Properties:

Functions

alloc_opts_t vector_alloc_opts (const vector_t *const vector)
 Access allocator options.
 
size_t vector_element_size (const vector_t *const vector)
 Reports current element size.
 
size_t vector_capacity (const vector_t *const vector)
 Reports current capacity of the vector.
 
size_t vector_capacity_bytes (const vector_t *const vector)
 Reports current capacity of the vector in bytes.
 

Detailed Description

Access properties of a vector.

Function Documentation

◆ vector_alloc_opts()

alloc_opts_t vector_alloc_opts ( const vector_t *const vector)

Access allocator options.

Parameters
[in]vectorPointer to a vector instance.
Returns
pointer to an allocator and size.

Definition at line 184 of file vector.c.

Here is the call graph for this function:

◆ vector_element_size()

size_t vector_element_size ( const vector_t *const vector)

Reports current element size.

Parameters
[in]vectorPointer to a vector instance.
Returns
Element size in bytes.

Definition at line 194 of file vector.c.

◆ vector_capacity()

size_t vector_capacity ( const vector_t *const vector)

Reports current capacity of the vector.

Parameters
[in]vectorPointer to a vector instance.
Returns
Amount of elements currently allocated.

Definition at line 201 of file vector.c.

◆ vector_capacity_bytes()

size_t vector_capacity_bytes ( const vector_t *const vector)

Reports current capacity of the vector in bytes.

Parameters
[in]vectorPointer to a vector instance.
Returns
Amount of bytes currently allocated for elements.

Definition at line 208 of file vector.c.