BloombergLP::ball::CategoryManager_RadixTree::find

Return a non-modifiable reference to the value for key, if present.

Synopsis

Declared in <ball_categorymanager_radixtree.h>

CategoryManager_RadixTree<t_VALUE>::OptValueCRef
find(std::string_view const& key) const;

Description

Return an optional containing a reference to the non-modifiable value associated with the specified key, or an empty optional if the key is not found. The returned reference remains valid until the tree is modified.

Return Value

optional reference to the value, or empty if not found

Parameters

NameDescription
keykey to look up