![]() |
VOOZH | about |
The std::map::find() is a built-in function in C++ STL that is used to find an element with given key in the map. It is a member function of std::map container so we can directly use it with any map.
map_name.find(key)
Key '2' found with value: 30 Key '5' not found!
std::map container in C++ is implemented using some Balanced Binary Search Tree (mostly R-B Tree). So,