Suppose I have a std::map<std::string, int>. Is there any way to use its at method with std::string_view? Here is a code snippet :
std::string_view key{ "a" };
std::map<std::string, int> tmp;
tmp["a"] = 0;
auto result = tmp.at(key);
Here is the output I have from clang 12.0
error: no matching member function for call to 'at'
auto result = tmp.at(key);