diff --git a/doc/container.qbk b/doc/container.qbk index 3d0ae54..a535fc4 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1213,17 +1213,25 @@ use [*Boost.Container]? There are several reasons for that: [section:release_notes Release Notes] +[section:release_notes_boost_1_62_00 Boost 1.62 Release] + +* Fixed bugs: + * [@https://svn.boost.org/trac/boost/ticket/11170 Trac #11170: ['"Doc slip for index_of"]]. + +[endsect] + + [section:release_notes_boost_1_61_00 Boost 1.61 Release] * [classref boost::container::small_vector] supports more constructors and assignments. * Fixed bugs: - * [@https://svn.boost.org/trac/boost/ticket/11820 Trac #11820 : ['"compiler error when using operator[] of map"]]. - * [@https://svn.boost.org/trac/boost/ticket/11856 Trac #11856 : ['"pool_resource.cpp error: declaration changes meaning"]]. - * [@https://svn.boost.org/trac/boost/ticket/11866 Trac #11866 : ['"small_vector does not have range constructor"]]. - * [@https://svn.boost.org/trac/boost/ticket/11867 Trac #11867 : ['"small_vector should have constructor and assignment operator taking other small_vector"]]. - * [@https://svn.boost.org/trac/boost/ticket/11912 Trac #11912 : ['"flat_map use of vector::priv_forward_range_insert_expand_backwards may cause move with same source"]]. - * [@https://svn.boost.org/trac/boost/ticket/11957 Trac #11957 : ['"static_vector::max_size() is higher than the capacity"]]. - * [@https://svn.boost.org/trac/boost/ticket/12014 Trac #12014 : ['"boost::container::set can not insert const (ref) range"]]. + * [@https://svn.boost.org/trac/boost/ticket/11820 Trac #11820: ['"compiler error when using operator[] of map"]]. + * [@https://svn.boost.org/trac/boost/ticket/11856 Trac #11856: ['"pool_resource.cpp error: declaration changes meaning"]]. + * [@https://svn.boost.org/trac/boost/ticket/11866 Trac #11866: ['"small_vector does not have range constructor"]]. + * [@https://svn.boost.org/trac/boost/ticket/11867 Trac #11867: ['"small_vector should have constructor and assignment operator taking other small_vector"]]. + * [@https://svn.boost.org/trac/boost/ticket/11912 Trac #11912: ['"flat_map use of vector::priv_forward_range_insert_expand_backwards may cause move with same source"]]. + * [@https://svn.boost.org/trac/boost/ticket/11957 Trac #11957: ['"static_vector::max_size() is higher than the capacity"]]. + * [@https://svn.boost.org/trac/boost/ticket/12014 Trac #12014: ['"boost::container::set can not insert const (ref) range"]]. * [@https://github.com/boostorg/container/pull/33 GitHub #33: ['Make sure std::string constructor is available]]. [endsect] diff --git a/include/boost/container/deque.hpp b/include/boost/container/deque.hpp index fef28a1..323de73 100644 --- a/include/boost/container/deque.hpp +++ b/include/boost/container/deque.hpp @@ -1277,11 +1277,10 @@ class deque : protected deque_base return const_iterator(this->cbegin()+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. //! diff --git a/include/boost/container/flat_set.hpp b/include/boost/container/flat_set.hpp index a99e707..5da6419 100644 --- a/include/boost/container/flat_set.hpp +++ b/include/boost/container/flat_set.hpp @@ -700,11 +700,10 @@ class flat_set //! Note: Non-standard extension const_iterator nth(size_type n) const BOOST_NOEXCEPT_OR_NOTHROW; - //! 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. //! diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index fabe92d..40a4f88 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -1630,11 +1630,10 @@ class vector return const_iterator(this->m_holder.start()+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. //!