Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

Heterogeneous Lookup in Ordered Containers, C++14 Feature

$
0
0

heterogeneous lookup in ordered containers, C++14

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...

Viewing all articles
Browse latest Browse all 325

Trending Articles