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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -