What's the time complexity of iterating through a std::set/std::map?

Viewed 26561

What's the time complexity of iterating through a std::set/std::multiset/std::map/std::multimap? I believe that it is linear in the size of the set/map, but not so sure. Is it specified in the language standard?

2 Answers
Related