Sometimes I want check if a std::unordered_map container contains an element, that's all I want to know, I don't want an iterator, I don't want to check the iterator against end(). Say for std::unordered_map<int, int>:
if (mymap.contains(5)) // Do something;
Instead of:
auto it = mymap.find(5);
if (it != mymap.end()) Do something;
What's the best way to have this?