I would like to ask a question that is related to this: Floating point keys in std:map
I make a std::map with a double
as the key to some other type MyType
, i.e:
map<double,MyType> myMap;
The question I have is this:
Given that myMap.find(...)
is std::map's optimised way of finding keys (see How sets, multisets, maps and multimaps work internally), is the method in Floating point keys in std:map significantly unoptimised? Could I implement something more efficient?