---
name: "ZyanVector_"
section: "3"
platform: "linux"
package: "libzycore-doc"
version: "1.5.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ZyanVector_"
---

# ZyanVector\_(3)

## NAME

ZyanVector\_

## SYNOPSIS

`#include <Vector.h>`

### Public Attributes

**ZyanAllocator** \* **allocator**\
 ZyanU8 **growth\_factor**\
 ZyanU8 **shrink\_threshold**\
 ZyanUSize **size**\
 ZyanUSize **capacity**\
 ZyanUSize **element\_size**\
 **ZyanMemberProcedure** **destructor**\
 void \* **data**\

## Detailed Description

Defines the `ZyanVector` struct.

All fields in this struct should be considered as 'private'. Any changes may lead to unexpected behavior.

## Member Data Documentation

### ZyanAllocator\* ZyanVector\_::allocator

The memory allocator.

### ZyanUSize ZyanVector\_::capacity

The maximum capacity (number of elements).

### void\* ZyanVector\_::data

The data pointer.

### ZyanMemberProcedure ZyanVector\_::destructor

The element destructor callback.

### ZyanUSize ZyanVector\_::element\_size

The size of a single element in bytes.

### ZyanU8 ZyanVector\_::growth\_factor

The growth factor.

### ZyanU8 ZyanVector\_::shrink\_threshold

The shrink threshold.

### ZyanUSize ZyanVector\_::size

The current number of elements in the vector.

## Author

Generated automatically by Doxygen for Zycore from the source code.
