4 ms·
In short, it allows a std::map<K, V> to be queried with a type that isn't K. For example, std::map<std::string, int> m; std::string_view sv = "mykey";
by secondcoming 6y ago
In short, it allows a std::map<K, V> to be queried with a type that isn't K. For example,
std::map<std::string, int> m;
std::string_view sv = "mykey";
auto&& iter = m.find(sv);
- nynx 6y agoOh, rust already has that.