max_bucket_count: Get the maximum number of buckets

max_bucket_countR Documentation

Get the maximum number of buckets

Description

Obtain the maximum number of buckets the container can hold.

Usage

max_bucket_count(x)

Arguments

x

A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, or CppUnorderedMultimap object.

Value

Returns a numeric.

See Also

bucket_count, load_factor, max_load_factor.

Examples

s <- cpp_unordered_set(6:10)
max_bucket_count(s)
# [1] 1.152922e+18


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