Graphviz 13.1.3~dev.20250831.0023
Loading...
Searching...
No Matches
list_t_ Struct Reference

#include <list-private.h>

Data Fields

void * base
 (base == NULL && capacity == 0) || (base != NULL && capacity > 0)
 
size_t head
 (capacity == 0 && head == 0) || (capacity > 0 && head < capacity)
 
size_t size
 size <= capacity
 
size_t capacity
 available storage slots
 

Detailed Description

generic list, agnostic to the list item type

There is no way to know the size of list items from this structure alone. List item size is expected to be supplied externally.

Definition at line 25 of file list-private.h.

Field Documentation

◆ base

void* list_t_::base

start of the allocation for backing memory

Definition at line 26 of file list-private.h.

Referenced by gv_list_copy_(), gv_list_free_(), gv_list_shrink_to_fit_(), gv_list_sort_(), gv_list_sync_(), slot_from_const_list(), slot_from_list(), and try_reserve().

◆ capacity

◆ head

size_t list_t_::head

◆ size


The documentation for this struct was generated from the following file: