std::unordered_multiset<Key,Hash,KeyEqual,Allocator>::bucket

  1. Returns the index of the bucket for key key. Elements (if any) with keys equivalent to key are always found in this bucket.

# Declarations

size_type bucket( const Key& key ) const;

(since C++11)

template< typename K >
size_type bucket( const K& x ) const;

(since C++26)

# Parameters

# Return value

Bucket index for the requested key.

# Notes

Feature-test macro Value Std Feature __cpp_lib_associative_heterogeneous_insertion 202311L (C++26) Heterogeneous overloads for the remaining member functions in ordered and unordered associative containers. (2)

# Example

This section is incompleteReason: no example

# See also