unordered_set::bucket_size

unordered_set::bucket_size (버킷 내 요소 수)

bucket_size()는 인덱스 n 버킷에 들어 있는 요소의 개수를 돌려줘요.

출처: cppreference

본문

bucket_size는 인덱스 n인 버킷에 들어 있는 요소의 개수를 반환해요.

size_type bucket_size( size_type n ) const;

반환값 (Return value)

버킷 n에 있는 요소의 개수예요.

복잡도 (Complexity)

버킷 n의 크기에 선형이에요.

더 알아보기 (Learn more)

cppreference