|
C Container Collection (CCC)
|
#include <private_types.h>
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 |
| enum CCC_Entry_status CCC_Entry::status |
A status to help us decide how to act with the entry.
| void* CCC_Entry::type |
The user type that belongs at this container location.