max_size | R Documentation |
Obtain the maximum number of elements the container can hold.
max_size(x)
x |
A CppSet, CppUnorderedSet, CppMultiset, CppUnorderedMultiset, CppMap, CppUnorderedMap, CppMultimap, CppUnorderedMultimap, CppVector, CppDeque, CppForwardList, or CppList object. |
Returns a numeric.
capacity, max_bucket_count, max_load_factor, size.
s <- cpp_deque(4:6)
s
# 4 5 6
max_size(s)
# [1] 4.611686e+18
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.