Learn R Programming

cppcontainers (version 1.0.4)

max_size: Get maximum container size

Description

Obtain the maximum number of elements the container can hold.

Usage

max_size(x)

Value

Returns a numeric.

Arguments

x

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

See Also

capacity, max_bucket_count, max_load_factor, size.

Examples

Run this code
s <- cpp_deque(4:6)
s
# 4 5 6

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

Run the code above in your browser using DataLab