max_size {cppcontainers}R Documentation

Get maximum container size

Description

Obtain the maximum number of elements the container can hold.

Usage

max_size(x)

Arguments

x

A CppSet, CppUnorderedSet, CppMultiset, CppUnorderedMultiset, CppMap, CppUnorderedMap, CppMultimap, CppUnorderedMultimap, CppVector, CppDeque, CppForwardList, or CppList object.

Value

Returns a numeric.

See Also

capacity, max_bucket_count, max_load_factor, size.

Examples

s <- cpp_deque(4:6)
s
# 4 5 6

max_size(s)
# [1] 4.611686e+18


[Package cppcontainers version 1.0.0 Index]