When do you use std::unordered_map::emplace_hint?
What could an unordered_map potentially do with the hint? Well, if the iterator addresses an element with the same key as the element that emplace_hint has been asked to insert, then it can fail quickly – just a key comparison without any hashing or groping through any list of hash-colliding elements at that bucket. But … Read more