3 ms·
Will they avoid the Transparent Comparator fudge that C++ has because the allocator is part of the type? https://stackoverflow.com/questions/20317413/what-are-
by secondcoming 6y ago
Will they avoid the Transparent Comparator fudge that C++ has because the allocator is part of the type?
https://stackoverflow.com/questions/20317413/what-are-transparent-comparators https://stackoverflow.com/questions/20317413/what-are-transp...
- nynx 6y agoCould you elaborate on what this is, exactly?
- secondcoming 6y agoIn 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.