Closed lmichaelis closed 1 year ago
It seems this won't work for std::unordered_map
in C++17. std::map
would have to be used. This is fixed in C++20 with P0919R2 – Heterogeneous lookup for unordered containers.
The question then becomes, if we should prefer constant-time lookups with heap allocation to logarithmic-time lookups without heap allocations while keeping in mind that there may be thousands of keys.
All APIs with the exception of the deprecated way_net::waypoint
have been migrated.
This allows for
find
-ing keys of typestd::string
usingstd::string_view
which makes everything faster.