From 3ad96419a517062b89eb3bba03d74b54dad6fdc9 Mon Sep 17 00:00:00 2001 From: m4xG4 Date: Thu, 18 Sep 2025 19:42:40 +0200 Subject: [PATCH 1/2] fixed complexity documentation for static_vector clear --- include/boost/container/static_vector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/container/static_vector.hpp b/include/boost/container/static_vector.hpp index 1f23128..be7b8fe 100644 --- a/include/boost/container/static_vector.hpp +++ b/include/boost/container/static_vector.hpp @@ -820,7 +820,8 @@ public: //! Nothing. //! //! @par Complexity - //! Constant O(1). + //! @li If \c is_trivially_destructible::value is \c true Constant O(1) + //! @li If \c is_trivially_destructible::value is \c false Linear O(N) void clear() BOOST_NOEXCEPT_OR_NOTHROW; //! @pre i < size() From 900b58a26a78d0bc34c829592d5636e9f19ec3a9 Mon Sep 17 00:00:00 2001 From: m4xG4 Date: Thu, 18 Sep 2025 19:55:54 +0200 Subject: [PATCH 2/2] added missing dots --- include/boost/container/static_vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/container/static_vector.hpp b/include/boost/container/static_vector.hpp index be7b8fe..f7f8b6c 100644 --- a/include/boost/container/static_vector.hpp +++ b/include/boost/container/static_vector.hpp @@ -820,8 +820,8 @@ public: //! Nothing. //! //! @par Complexity - //! @li If \c is_trivially_destructible::value is \c true Constant O(1) - //! @li If \c is_trivially_destructible::value is \c false Linear O(N) + //! @li If \c is_trivially_destructible::value is \c true Constant O(1). + //! @li If \c is_trivially_destructible::value is \c false Linear O(N). void clear() BOOST_NOEXCEPT_OR_NOTHROW; //! @pre i < size()