|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include <hashmap.h>
Data Fields | |
| size_t | len |
| Number of key/value pairs in the map. | |
| hmap_node_t * | root |
| const srn_context_t * | map_ctx |
| The context that owns every allocation the map retains. | |
| const srn_context_t* hmap_t::map_ctx |
The context that owns every allocation the map retains.
hmap_empty sets it and every version returned by hmap_insert inherits it. Inserts allocate trie nodes, kv entries, and copied keys in this context's block chain, never in the inserting caller's, so the map stays valid for as long as the pinned context lives.
| hmap_node_t* hmap_t::root |