Call functor for each key‐value pair whose key starts with prefix.

Synopses

Declared in <ball_categorymanager_radixtree.h>

Call functor for each key‐value pair whose key starts with prefix.

template<class t_FUNCTOR>
CategoryManager_RadixTree<t_VALUE>::size_type
forEachPrefix(
    std::string_view const& prefix,
    t_FUNCTOR const& functor);

Call functor for each key‐value pair whose key starts with prefix.

template<class t_FUNCTOR>
CategoryManager_RadixTree<t_VALUE>::size_type
forEachPrefix(
    std::string_view const& prefix,
    t_FUNCTOR const& functor) const;

Return Value

number of times the functor was called

Parameters

Name

Description

prefix

key prefix to match

functor

callable invoked for each matching key‐value pair

Created with MrDocs