boost::unordered_map missing reserve() like std::unordered_map
问题 For my next task I need to use a very big hash; since I have an old compiler I cannot use C++0x std::unordered_map . Ideally I need is a call to reserve to make room in advance for a large number of items. I cannot find this method in boost::unordered_map : is there any place or function that achieves the same? The 2 associative container are the same; I can see rehash function and the same constructor for controlling the number of buckets, but not a function about a number of elements. Can