From fa05d4447cb44252dada9663df738fe279169011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 28 Jul 2013 22:10:37 +0000 Subject: [PATCH] * Big refactoring in order to reduce template and debug symbol bloat. * Fixes #8698 * Implemented SCARY iterators [SVN r85165] --- include/boost/container/static_vector.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/boost/container/static_vector.hpp b/include/boost/container/static_vector.hpp index fb97b7f..4a8cce4 100644 --- a/include/boost/container/static_vector.hpp +++ b/include/boost/container/static_vector.hpp @@ -81,8 +81,11 @@ class static_storage_allocator * possible. * * @par Error Handling - * Insertion beyond the capacity and out of bounds errors results in calling throw_bad_alloc(). - * The reason for this is because unlike vectors, static_vector does not perform allocation. + * Insertion beyond the capacity result in throwing std::bad_alloc() if exceptions are enabled or + * calling throw_bad_alloc() if not enabled. + * + * std::out_of_range is thrown if out of bound access is performed in `at()` if exceptions are + * enabled, throw_out_of_range() if not enabled. * * @tparam Value The type of element that will be stored. * @tparam Capacity The maximum number of elements static_vector can store, fixed at compile time.