|
C Container Collection (CCC)
|
#include <private_flat_hash_map.h>

A simple wrapper for an entry that allows us to return a compound literal reference. All interface functions accept pointers to entries and a functional chain of calls is not possible with return by value. The interface can then return &(union CCC_Flat_hash_map_entry_wrap){function_call(...).private} which is a compound literal reference in C23.
Data Fields | |
| struct CCC_Flat_hash_map_entry | private |
| struct CCC_Flat_hash_map_entry CCC_Flat_hash_map_entry_wrap::private |
Wrapped type to make compound literal reference easy.