object::max_size

## `object::max_size`

The maximum number of elements an object can hold.

### Synopsis

    static constexpr std::size_t
    max_size() noexcept;

### Description

The maximum is an implementation-defined number dependent on system or library implementation. This value is a theoretical limit; at runtime, the actual maximum size may be less due to resource limits.

### Complexity

Constant.

### Exception Safety

No-throw guarantee.

Edit this page