C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Entry Struct Reference

#include <private_types.h>

Detailed Description

An entry is inspired by Rust's Entry API. Entries provide elegant and efficient ways to interact with associative containers. Instead of searching for elements and then inserting or removing based on the result of a search, we can obtain either the present element or a vacant slot where the element belongs. This allows us to act how we wish with this reference and no second insert, search, or remove operation is needed.

Data Fields

void * type
 
enum CCC_Entry_status status
 

Field Documentation

◆ status

enum CCC_Entry_status CCC_Entry::status

A status to help us decide how to act with the entry.

◆ type

void* CCC_Entry::type

The user type that belongs at this container location.


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