From 44d0f716f3088fca89d56c0bf424697d18e42acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 4 May 2022 23:38:29 +0200 Subject: [PATCH] Improve error handling explanation --- include/boost/container/static_vector.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/container/static_vector.hpp b/include/boost/container/static_vector.hpp index 8c4a912..ddc12d4 100644 --- a/include/boost/container/static_vector.hpp +++ b/include/boost/container/static_vector.hpp @@ -137,8 +137,9 @@ struct get_static_vector_allocator //!possible. //! //!@par Error Handling -//! Insertion beyond the capacity result in throwing bad_alloc() if exceptions are enabled or -//! calling throw_bad_alloc() if not enabled. +//! If `throw_on_overflow` option is true (default behaviour), insertion beyond the capacity result +//! in throwing bad_alloc() if exceptions are enabled and or calling throw_bad_alloc() if not enabled. +//! If `throw_on_overflow` option is false, insertion beyond capacity results in Undefined Behaviour. //! //! out_of_range is thrown if out of bounds access is performed in at() if exceptions are //! enabled, throw_out_of_range() if not enabled.