Tessil / hat-trie

C++ implementation of a fast and memory efficient HAT-trie
MIT License
793 stars 114 forks source link

possible to pls show how to use emplace function? #46

Closed superdolt closed 2 years ago

superdolt commented 3 years ago

by the way, what's emplace? is there a replace function and how to use? thx

Tessil commented 2 years ago

The emplace method is similar to the std::unordered_map::emplace function and construct the new element in-place.

To replace an element use the operator[] like std::unordered_map::operator[].