rehash {cppcontainers} | R Documentation |
Set minimum bucket count and rehash
Description
Set a container's minimum bucket count and rehash by reference.
Usage
rehash(x, n = 0)
Arguments
x |
A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, or CppUnorderedMultimap object. |
n |
The minimum number of buckets. A value of |
Value
Invisibly returns NULL
.
See Also
bucket_count, load_factor, max_bucket_count, max_load_factor, reserve.
Examples
s <- cpp_unordered_set(4:6)
rehash(s)
rehash(s, 3)
[Package cppcontainers version 1.0.0 Index]