Closed superdolt closed 2 years ago
by the way, what's emplace? is there a replace function and how to use? thx
The emplace method is similar to the std::unordered_map::emplace function and construct the new element in-place.
emplace
std::unordered_map::emplace
To replace an element use the operator[] like std::unordered_map::operator[].
operator[]
std::unordered_map::operator[]
by the way, what's emplace? is there a replace function and how to use? thx