Two dimensional unordered_map
问题 typedef boost::unordered_map<int, void*> OneDimentionalNodes; typedef boost::unordered_map<int, OneDimentionalNodes> TwoDimentionalNodes; TwoDimentionalNodes nodes; is this valid? i don't use any hash functions since keys of the unordered_maps' are single integers. it compiles, but when i iterate it like this, it crashes while trying to access this->hash_function()(k); for (TwoDimentionalNodes::iterator it= nodes.begin(); it != nodes.end() ; ++it) { for(OneDimentionalNodes::iterator it2 =