Given a hashmap that is keyed on a pair of strings, e.g:
std::unordered_map<std::pair<String, String>, int> myMap;
How could one do a lookup with a pair of std::string_view, e.g:
std::string s = "I'm a string";
std::string s2 = "I'm also a string";
std::string_view sv(s);
std::string_view sv2(s2);
myMap.find(std::make_pair(sv, sv2));
I guess that I need to define my own comparator somewhere, but I'm not sure where to begin.