Trie.opIndex

TypeOfBitPacked!Value opIndex()(Key key) const

Lookup the key in this Trie.

The lookup always succeeds if key fits the domain

provided during construction. The whole domain defined is covered so instead of not found condition the sentinel (filler) value could be used.

See buildTrie, TrieBuilder for how to

define a domain of Trie keys and the sentinel value.

Note

Domain range-checking is only enabled in debug builds

and results in assertion failure.