Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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);


Oh, rust already has that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: