bucket_count: Get the number of buckets

bucket_countR Documentation

Get the number of buckets

Description

Obtain the container's number of buckets.

Usage

bucket_count(x)

Arguments

x

A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, CppUnorderedMultimap object.

Value

Returns the container's number of buckets.

See Also

max_bucket_count, load_factor, size.

Examples

s <- cpp_unordered_set(6:10)
s
# 10 9 8 7 6

bucket_count(s)
# [1] 13


cppcontainers documentation built on Sept. 9, 2025, 5:55 p.m.