boost::container::throw_out_of_range
// In header: <boost/container/throw_exception.hpp> void throw_out_of_range(const char * str);
Boost.Container 调用异常回调函数,用于指示参数超出范围。
如果未定义 BOOST_NO_EXCEPTIONS 且未定义 BOOST_CONTAINER_USE_STD_EXCEPTIONS,则抛出 boost::container::out_of_range(str)
。
如果未定义 BOOST_NO_EXCEPTIONS 且定义了 BOOST_CONTAINER_USE_STD_EXCEPTIONS,则抛出 std::out_of_range(str)
。
如果定义了 BOOST_NO_EXCEPTIONS 且未定义 BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS,则调用 BOOST_ASSERT_MSG(!"boost::container out_of_range thrown", str)
,如果前者返回,则调用 std::abort()
。
如果定义了 BOOST_NO_EXCEPTIONS 和 BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS,则用户必须提供实现,并且该函数不应返回。