max_size

Syntax:

    #include <set>
    size_type max_size() const;

The max_size() function returns the maximum number of elements that the set can hold.

Related Topics: size