diff --git a/include/boost/container/stable_vector.hpp b/include/boost/container/stable_vector.hpp index 6bb9ab2..6aca69b 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. //!