| Home | Libraries | People | FAQ | More

## Struct template throw_on_overflow

boost::container::throw_on_overflow

## Synopsis

    // In header: <boost/container/options.hpp>

    template<bool ThrowOnOverflow>
    struct throw_on_overflow {
    };

## Description

This option specifies if the container will throw if in the static capacity is not sufficient to hold the required values. If false is specified, insufficient capacity will lead to BOOST_ASSERT, and if this assertion returns, to undefined behaviour, which potentially can lead to better static_vector performance. The default value is true.