From d94f52ef7da4bdcfba8e3f6526a03559b25d963c Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Tue, 2 Jun 2015 11:22:22 +0900 Subject: [PATCH] fix stable_vector#index_of's doxygen comment --- include/boost/container/stable_vector.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/boost/container/stable_vector.hpp b/include/boost/container/stable_vector.hpp index 8e8c0fd..69d3718 100644 --- a/include/boost/container/stable_vector.hpp +++ b/include/boost/container/stable_vector.hpp @@ -1293,11 +1293,10 @@ class stable_vector return (this->index.empty()) ? this->cend() : iterator(node_ptr_traits::static_cast_from(this->index[n])); } - //! Requires: size() >= n. + //! Requires: begin() <= p <= end(). //! - //! Effects: Returns an iterator to the nth element - //! from the beginning of the container. Returns end() - //! if n == size(). + //! Effects: Returns the index of the element pointed by p + //! and size() if p == end(). //! //! Throws: Nothing. //!