Talk:cpp/container/map/erase
From cppreference.com
Map cannot contain several entries with key key:
"3) Removes all elements with the key value key."
Should be replace with:
"3) Removes element with the key value key."
--- Is the complexity of variant (2) correct? Given two iterators, why would the complexity depend on the container size and not simply on the number of elements removed?