bucket_count {cppcontainers} | R 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
[Package cppcontainers version 1.0.0 Index]