data_structures
Data Fields
s_array Struct Reference

A resizable array. More...

#include <array.h>

Data Fields

size_t size
 The number of items in this array. More...
 
size_t capacity
 The capacity of this array. More...
 
void ** arr
 The data. More...
 
const t_typetype
 The type of items in this array. More...
 

Detailed Description

A resizable array.

The array will double in size when its capacity is filled, and halve its size when only 1/4 of its capacity is used.

Definition at line 47 of file array.h.

Field Documentation

◆ arr

s_array::arr

The data.

Definition at line 51 of file array.h.

◆ capacity

s_array::capacity

The capacity of this array.

Definition at line 50 of file array.h.

◆ size

s_array::size

The number of items in this array.

Definition at line 49 of file array.h.

◆ type

s_array::type

The type of items in this array.

Definition at line 52 of file array.h.


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