Hello
Can I call .find() safely on map object if there's possibility that the map is empty? Or should I check for .is_empty() first?
Thanks a lot for help
Hello
Can I call .find() safely on map object if there's possibility that the map is empty? Or should I check for .is_empty() first?
Thanks a lot for help
You can safely use the find() member function on an empty map. With an empty map, it will surely return end().
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)