...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::container::throw_on_overflow
// In header: <boost/container/options.hpp> template<bool ThrowOnOverflow> struct throw_on_overflow { };
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.