Remove all children of the entry matching the specified prefix.

Synopsis

Declared in <ball_categorymanager_radixtree.h>

CategoryManager_RadixTree<t_VALUE>::size_type
eraseChildrenOfPrefix(std::string_view const& prefix);

Description

Do not remove the entry with the prefix itself. If unused (no value, no children) nodes remain remove those, too. If no entry exists for prefix remove nothing. Return the number of entries removed.

Return Value

number of entries removed

Parameters

Name

Description

prefix

key of the entry whose children are removed

Created with MrDocs