qb_map_foreach - Man Page

Calls the given function for each of the key/value pairs in the map.

Synopsis

#include <qb/qbmap.h>

void qb_map_foreach(
    qb_map_t             *map,
    qb_map_transverse_fn  func,
    void                 *user_data
);

Description

The function is passed the key and value of each pair, and the given data parameter. The map is traversed in sorted order.

See Also

qb_trie_dump(3), qb_map_iter_create(3), qb_skiplist_create(3), qb_map_notify_del(3), qb_map_put(3), qb_map_count_get(3), qb_map_pref_iter_create(3), qb_map_iter_next(3), qb_map_get(3), qb_map_destroy(3), qb_hashtable_create(3), qb_map_iter_free(3), qb_map_notify_add(3), qb_trie_create(3), qb_map_notify_del_2(3), qb_map_rm(3)

Referenced By

qb_hashtable_create(3), qb_map_count_get(3), qb_map_destroy(3), qb_map_get(3), qbmap.h(3), qb_map_iter_create(3), qb_map_iter_free(3), qb_map_iter_next(3), qb_map_notify_add(3), qb_map_notify_del(3), qb_map_notify_del_2(3), qb_map_pref_iter_create(3), qb_map_put(3), qb_map_rm(3), qb_skiplist_create(3), qb_trie_create(3), qb_trie_dump(3).

2023-07-21 libqb Programmer's Manual