Return the bucket index for the specified key.
Synopsis
Declared in <bslstl_unorderedset.h>
unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::size_type
bucket(key_type const& key) const;
Description
Return the index of the bucket, in the array of buckets of this container, where a value equivalent to the specified key would be inserted.
Return Value
index of the bucket for key
Parameters
Name |
Description |
key |
key value to look up |
Created with MrDocs