Namespaces
Variants

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

From cppreference.net

size_type bucket_count ( ) const ;
(自 C++11 起)

返回容器中的桶数量。

目录

参数

(无)

返回值

容器中的桶数量。

复杂度

常量。

参见

返回特定桶中的元素数量
(公开成员函数)
返回桶的最大数量
(公开成员函数)