Skip to content

Commit e7d5add

Browse files
authored
Merge pull request #319 from m4xG4/static_vector_clear_doc
fixed complexity documentation for static_vector clear
2 parents 6be91b8 + 900b58a commit e7d5add

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/container/static_vector.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,8 @@ class static_vector
820820
//! Nothing.
821821
//!
822822
//! @par Complexity
823-
//! Constant O(1).
823+
//! @li If \c is_trivially_destructible<T>::value is \c true Constant O(1).
824+
//! @li If \c is_trivially_destructible<T>::value is \c false Linear O(N).
824825
void clear() BOOST_NOEXCEPT_OR_NOTHROW;
825826

826827
//! @pre <tt>i < size()</tt>

0 commit comments

Comments
 (0)