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:


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