The C ++ 14 standard defines find () member functions for std::map as follows:
iterator find(const key_type& x); const_iterator find(const key_type& x) const;
Why are these functions not defined as noexcept ? What could go wrong inside that would require throwing an exception or creating undefined behavior (besides not finding an element, in this case the function returns an end iterator, and in any case no exception is required)?
source share