std::unordered_multimap::bucket

From Cppreference

Jump to: navigation, search
size_type bucket( const Key& key ) const;
(C++11 feature)

Returns the bucket index for the key key.

Contents

[edit] Parameters

key - the value of the key to examine

[edit] Return value

bucket index for the key key.

[edit] Complexity

Constant

[edit] See also

bucket_size
returns the number of elements in specific bucket
(public member function)