max_bucket_count {cppcontainers}R 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


[Package cppcontainers version 1.0.0 Index]