Is multimap find(key) guaranteed to return an iterator to the FIRST element with key "key" ? I couldn't find a proper answer in documentation anywhere.
CodePudding user response:
std::multimap::find(key)
returns an iterator on any element whose key compares equal to key
:
Finds an element with key equivalent to key. If there are several elements with key in the container, any of them may be returned.