Is the order of iterating through std::map known (and guaranteed by the standard)?
What I mean is – we know that the std::map‘s elements are sorted according to the keys. So, let’s say the keys are integers. If I iterate from std::map::begin() to std::map::end() using a for, does the standard guarantee that I’ll iterate consequently through the elements with keys, sorted in ascending order? Example: std::map<int, int> map_; … Read more