|
size_t | ext_header_size |
| Size of further extended header (after dynarr)
|
|
size_t | size |
| Tracked amount of stored elements.
|
|
size_t | initial_cap |
| Amount of elements preallocated,
(dynarr won't shrink below that amount).
|
|
float | grow_factor |
| Multiplier that is applied to dynarr capactity on resize.
|
|
float | grow_threshold |
| Fraction of the capacity need to be used to trigger growing.
|
|
float | shrink_threshold |
| Fraction of the capacity in use at which srink will be performed.
|
|
Describes header that will be concatenated after vector_t.
- Warning
- Size for the header has to be reserved via vector_t::ext_header_size on vector creation.
- See also
- vector_get_ext_header
-
get_dynarr_header
Definition at line 22 of file dynarr.c.
◆ ext_header_size
size_t dynarr_header_t::ext_header_size |
Size of further extended header (after dynarr)
Definition at line 24 of file dynarr.c.
◆ size
size_t dynarr_header_t::size |
Tracked amount of stored elements.
Definition at line 25 of file dynarr.c.
◆ initial_cap
size_t dynarr_header_t::initial_cap |
Amount of elements preallocated,
(dynarr won't shrink below that amount).
Definition at line 26 of file dynarr.c.
◆ grow_factor
float dynarr_header_t::grow_factor |
Multiplier that is applied to dynarr capactity on resize.
Definition at line 27 of file dynarr.c.
◆ grow_threshold
float dynarr_header_t::grow_threshold |
Fraction of the capacity need to be used to trigger growing.
Definition at line 28 of file dynarr.c.
◆ shrink_threshold
float dynarr_header_t::shrink_threshold |
Fraction of the capacity in use at which srink will be performed.
Definition at line 29 of file dynarr.c.