Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


cppcontainers (version 1.0.4)

max_bucket_count: Get the maximum number of buckets

Description

Obtain the maximum number of buckets the container can hold.

Usage

max_bucket_count(x)

Value

Returns a numeric.

Arguments

x

A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, or CppUnorderedMultimap object.

See Also

bucket_count, load_factor, max_load_factor.

Examples

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

Run the code above in your browser using DataLab