If you have a map of strings, like std::map<std::string, int> m;
and you want to find some element by m.find("abc")
. Do you have to pay the price and construct a std::string
object? Can you optimize it?
Let’s have a look at one feature enabled in C++14 that might help optimize such container access.
Read more...