unordered-map
Why is my unordered_map ordering itself?
So Iwas playing with the newly standardized unordered_map from the STL.The code I have is kinda开发者_开发问答 like this, I just create an unordered_map, fill it up, and print it out:[详细]
2023-03-24 02:58 分类:问答Mysterious behavior of unordered_map in Visual Studio
I want to store ~3,000,000 double values at unsigned int indices under VS2010 C++. I use a std::tr1:unordered_map<unsigned int, double> for this purpose. Unfortunately, when I try to store value[详细]
2023-03-23 18:47 分类:问答unordered_map iterator printing using cout
I\'m trying to use an iterator to output an integer in a multilayered unordered_map and I\'m having trouble with it, the error is below the code.[详细]
2023-03-22 18:51 分类:问答Erasing element from multilevel unordered_map?
I have the following code where I wanted to eliminate the element I created initialy with the value 10. I\'m having trouble setting up an iterator and erasing it. How is it done?[详细]
2023-03-22 07:54 分类:问答Inserting typedef map into a hash table
In the program below I\'ve a typedef map. What I want to do is to implement a hash table. I\'m trying to use unorder开发者_如何学Goed_map since I heard that is the efficient as it takes O(1) time. I u[详细]
2023-03-18 04:47 分类:问答Custom Allocator in tr1's unordered_map
I have a few problems regarding a custom allocator for an unordered_map. I have a large dataset and I need to hash on a string as key. So I came to know that providing a custom memory allocator would[详细]
2023-03-12 22:36 分类:问答Remove duplicates from two large text files using unordered_map
I am new to a lot of these C++ libraries, so please forgive me if my questions comes across as naive.[详细]
2023-03-12 21:22 分类:问答Sorting std::unordered_map by key
How can I sort an u开发者_StackOverflow社区nordered_map by key? I need to print an unordered_map sorted by key.std::unordered_map<int, int> unordered;[详细]
2023-03-09 19:08 分类:问答Pre-allocating buckets in a C++ std::unordered_map
I\'m using the std::unordered_map from gnu++0x to store a huge amount of开发者_StackOverflow社区 data. I want to pre-allocate space for the large number of elements, since I can bound the total space[详细]
2023-03-03 00:07 分类:问答C++ equality in std::tr1::unordered_map
Is there a reason that std::tr1::unordered_map left out the equality (==) operator, which exists for std::map ?[详细]
2023-02-26 21:00 分类:问答