Namespaces
Variants

std::unordered_set<Key,Hash,KeyEqual,Allocator>:: bucket_size

From cppreference.net

size_type bucket_size ( size_type n ) const ;
(自 C++11 起)

返回索引为 n 的桶中的元素数量。

目录

参数

n - 待检查桶的索引

返回值

桶中的元素数量 n

复杂度

与桶的大小 n 呈线性关系。

参阅

返回桶的数量
(公开成员函数)