unordered map - C++11 get all items of one bucket in a unordered_map -
we know std::unordered_map::bucket
return bucket slot in container's internal hash table elements assigned based on hash value of key. how can begin-iterator , end-iterator in return bucket ? in other word, can use bucket_count
count of buckets, how can detect items in each bucket?
you can use std::unordered_map::begin(int) , std::unordered_map::end(int) iterators particular bucket.
Comments
Post a Comment