halcheck 1.0
Loading...
Searching...
No Matches

◆ set() [1/2]

template<typename K , typename V , typename Hash = std::hash<K>>
template<typename R >
trie halcheck::lib::trie< K, V, Hash >::set ( const R & range,
V value ) const
inline

Constructs a new trie with a specific value replaced.

Template Parameters
RThe type of range holding a sequence of keys.
Parameters
rangeA sequence of keys.
valueThe value to assign.
Returns
A new trie with the value of the node identified by range changed to value.