libcstl
Loading...
Searching...
No Matches
Functions
map.c File Reference

Go to the source code of this file.

Functions

const cstl_map_iterator_tcstl_map_iterator_end (const cstl_map_t *const m)
 Return an iterator that refers to the end of the map.
 
void cstl_map_clear (cstl_map_t *const map, cstl_xtor_func_t *const clr, void *const priv)
 Remove all elements from the map.
 
void cstl_map_init (cstl_map_t *const map, cstl_compare_func_t *const cmp, void *const priv)
 Initialize a map.
 
void cstl_map_find (const cstl_map_t *const map, const void *const key, cstl_map_iterator_t *const i)
 Find an element in the map with a matching key.
 
int cstl_map_erase (cstl_map_t *const map, const void *const key, cstl_map_iterator_t *const _i)
 Erase the element with the supplied key from the map.
 
void cstl_map_erase_iterator (cstl_map_t *const map, cstl_map_iterator_t *const i)
 Erase the element pointed to by the iterator.
 
int cstl_map_insert (cstl_map_t *const map, const void *const key, void *const val, cstl_map_iterator_t *const i)
 Insert a key/value pair into the map.