Given the new toolset provided by c++ lots of programmers, aiming at code simplification, expressiveness, efficiency, skim through their old code and make tweaks (some point
std::map
to std::unordered_map
and std::set
to
std::unordered_set
where ever order of container's elements is irrelevant, enhances significantly the performance.std::map::at
instead of using square bracket syntax insertion, when you want to avoid involuntary insertions.typedef
templates.