|
|
@@ -78,11 +78,7 @@ auto trie<K, V, C>::operator[](key_type const & key) -> self_t & {
|
|
|
// Operations: O(d*log(n/d))
|
|
|
template <typename K, typename V, typename C>
|
|
|
auto trie<K, V, C>::operator[](std::initializer_list<key_type> keys) -> self_t & {
|
|
|
- self_t * rec = this;
|
|
|
- for ( key_type const & key : keys ) {
|
|
|
- rec = &(*rec)[key];
|
|
|
- }
|
|
|
- return *rec;
|
|
|
+ return operator[]<std::initializer_list<key_type>>(keys);
|
|
|
}
|
|
|
|
|
|
template <typename K, typename V, typename C>
|