命名空間
變體
動作

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

出自 cppreference.com
 
 
 
 
size_type bucket_size( size_type n ) const;
(C++11 起)

返回索引為 n 的桶(bucket)中的元素數量。

目錄

[編輯] 參數

n - 要檢查的桶索引

[編輯] 返回值

n 中的元素數量。

[編輯] 複雜度

與桶 n 的大小呈線性關係。

[編輯] 參見

返回桶的數量
(公開成員函式) [編輯]
English Deutsch 日本語 中文(简体) 中文(繁體)