Top "Unordered-map" questions

is a C++ class that is an associative container storing a combination of a key value and a mapped value allowing for quick retrieval of elements based on their keys.

error for hash function of pair of ints

I have the following class with an unordered_map member, and a hash function defined for pair<int,int&…

c++ c++11 hash stl unordered-map
Sorting std::unordered_map by key

How can I sort an unordered_map by key? I need to print an unordered_map sorted by key.

c++ sorting unordered-map
Is for(auto i : unordered_map) guaranteed to have the same order every time?

When I iterate over a std::unordered_map with the range based for loop twice, is the order guaranteed to …

c++ for-loop standards unordered-map
c++ - unordered_map complexity

I need to create a lookup function where a (X,Y) pair corresponds to a specific Z value. One major …

c++ hashtable complexity-theory unordered-map
How does C++ STL unordered_map resolve collisions?

How does C++ STL unordered_map resolve collisions? Looking at the http://www.cplusplus.com/reference/unordered_map/unordered_map/, …

c++ stl unordered-map
Generic hash for tuples in unordered_map / unordered_set

Why doesn't std::unordered_map<tuple<int, int>, string> just work out of the box? It …

c++ c++11 tuples unordered-map unordered-set
pair<int,int> pair as key of unordered_map issue

My code: typedef pair<int,int> Pair tr1::unordered_map<Pair,bool> h; h.insert(make_…

c++ unordered-map std-pair
What is the difference between unordered_map::emplace and unordered_map::insert in C++?

What is the difference between std::unordered_map::emplace and std::unordered_map::insert in C++?

c++ c++11 insert unordered-map emplace
How to initialize a static std::unordered_map of a type trait?

Given the following type trait, how can I initialize Fields with some std::pairs? template <> struct ManagerDataTrait<…

c++ static-members template-specialization unordered-map typetraits
unordered_map hash function c++

I need to define an unordered_map like this unordered_map<pair<int, int>, *Foo>, what …

c++ unordered-map hash-function