QB_MAP_PREF_ITER_CREATE(3)
π QB_MAP_PREF_ITER_CREATE(3) π
okay bestie, welcome to the libqb Programmer's Manual β today's episode: qb_map_pref_iter_create. yes it's a mouthful, no we're not renaming it, the function said what it said π
β¨ NAME β¨
qb_map_pref_iter_create β make a prefix iterator, periodt.
πΈ SYNOPSIS πΈ
#include <qb/qbmap.h>
qb_map_iter_t * qb_map_pref_iter_create(
qb_map_t *map,
const char *prefix
);
π¦ DESCRIPTION π¦
so what does she do?? she sets you up to iterate over all items with the given prefix. that's it, that's the whole vibe. you hand her a map and a prefix, she hands you back an iterator that only sees the stuff starting with that prefix. lowkey iconic honestly π«Ά
π NOTE π
this is only supported by the trie. like, ONLY the trie. don't come for her with a hashtable and expect prefix magic, she will not deliver π
π SEE ALSO π
go read your other faves, fr fr:
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_foreach(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)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
aaaand that's the tea π this page came to you straight from LIBQB, dated 2025-09-16, and yes the manual name is still QB_MAP_PREF_ITER_CREATE(3) because some things are eternal. stay hydrated, go free your iterators, mwah πβ¨
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms