Vector 0.0.2
Loading...
Searching...
No Matches
vector_opts_t Struct Reference

Vector options. More...

#include <vector.h>

Collaboration diagram for vector_opts_t:
[legend]

Data Fields

alloc_opts_t alloc_opts
 optional allocator
 
size_t ext_header_size
 Size of the extention header.
 
size_t element_size
 Size of the underling element type.
 
size_t initial_cap
 Amount of elements that will be preallocated.
 

Detailed Description

Vector options.

Parameters that are passed to a vector_create_ function, they provide all information needed for vector creation.

Examples
create.c.

Definition at line 51 of file vector.h.

Field Documentation

◆ alloc_opts

alloc_opts_t vector_opts_t::alloc_opts

optional allocator

Definition at line 53 of file vector.h.

◆ ext_header_size

size_t vector_opts_t::ext_header_size

Size of the extention header.

Definition at line 54 of file vector.h.

◆ element_size

size_t vector_opts_t::element_size

Size of the underling element type.

Examples
create.c.

Definition at line 56 of file vector.h.

◆ initial_cap

size_t vector_opts_t::initial_cap

Amount of elements that will be preallocated.

Definition at line 59 of file vector.h.