libcute 0.1
Loading...
Searching...
No Matches
Public Attributes | List of all members
cu_Vector Struct Reference

Growable array of elements. More...

#include <vector.h>

Collaboration diagram for cu_Vector:
Collaboration graph
[legend]

Public Attributes

cu_Slice_Optional data
 
size_t length
 
size_t capacity
 
cu_Layout layout
 
cu_Allocator allocator
 
cu_Destructor_Optional destructor
 

Detailed Description

Growable array of elements.

The vector manages a contiguous memory block whose layout is described by cu_Layout. It automatically resizes when elements are inserted.

Member Data Documentation

◆ allocator

cu_Allocator cu_Vector::allocator

allocator used for storage

◆ capacity

size_t cu_Vector::capacity

allocated element capacity

◆ data

cu_Slice_Optional cu_Vector::data

memory backing the vector

◆ destructor

cu_Destructor_Optional cu_Vector::destructor

optional element destructor

◆ layout

cu_Layout cu_Vector::layout

layout of each element

◆ length

size_t cu_Vector::length

number of valid elements


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