From 2077adb0bc1d31492cdf374f2e5132e237f8f3cc Mon Sep 17 00:00:00 2001 From: Dmitriy Babkov Date: Tue, 14 Sep 2021 16:19:56 +0300 Subject: [PATCH] Fix documented Complexity of static_vector::reserve --- include/boost/container/static_vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/container/static_vector.hpp b/include/boost/container/static_vector.hpp index 6a9de7f..fb76685 100644 --- a/include/boost/container/static_vector.hpp +++ b/include/boost/container/static_vector.hpp @@ -536,7 +536,7 @@ public: //! Nothing. //! //! @par Complexity - //! Linear O(N). + //! Constant O(1). void reserve(size_type count) BOOST_NOEXCEPT_OR_NOTHROW; //! @pre size() < capacity()