|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76828 - branches/release/boost/container
From: igaztanaga_at_[hidden]
Date: 2012-02-01 17:11:54
Author: igaztanaga
Date: 2012-02-01 17:11:53 EST (Wed, 01 Feb 2012)
New Revision: 76828
URL: http://svn.boost.org/trac/boost/changeset/76828
Log:
Documentation fix. Ticket 6499
Text files modified:
branches/release/boost/container/deque.hpp | 8 ++++----
branches/release/boost/container/stable_vector.hpp | 10 +++++-----
branches/release/boost/container/string.hpp | 8 ++++----
branches/release/boost/container/vector.hpp | 8 ++++----
4 files changed, 17 insertions(+), 17 deletions(-)
Modified: branches/release/boost/container/deque.hpp
==============================================================================
--- branches/release/boost/container/deque.hpp (original)
+++ branches/release/boost/container/deque.hpp 2012-02-01 17:11:53 EST (Wed, 01 Feb 2012)
@@ -715,7 +715,7 @@
const_reverse_iterator crend() const BOOST_CONTAINER_NOEXCEPT
{ return const_reverse_iterator(this->members_.m_start); }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -726,7 +726,7 @@
reference operator[](size_type n) BOOST_CONTAINER_NOEXCEPT
{ return this->members_.m_start[difference_type(n)]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
@@ -737,7 +737,7 @@
const_reference operator[](size_type n) const BOOST_CONTAINER_NOEXCEPT
{ return this->members_.m_start[difference_type(n)]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -748,7 +748,7 @@
reference at(size_type n)
{ this->priv_range_check(n); return (*this)[n]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
Modified: branches/release/boost/container/stable_vector.hpp
==============================================================================
--- branches/release/boost/container/stable_vector.hpp (original)
+++ branches/release/boost/container/stable_vector.hpp 2012-02-01 17:11:53 EST (Wed, 01 Feb 2012)
@@ -927,7 +927,7 @@
}
}
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -937,7 +937,7 @@
//! <b>Complexity</b>: Constant.
reference operator[](size_type n){return value(impl[n]);}
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
@@ -947,7 +947,7 @@
//! <b>Complexity</b>: Constant.
const_reference operator[](size_type n)const{return value(impl[n]);}
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -962,12 +962,12 @@
return operator[](n);
}
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
//!
- //! <b>Throws</b>: Nothing.
+ //! <b>Throws</b>: std::range_error if n >= size()
//!
//! <b>Complexity</b>: Constant.
const_reference at(size_type n)const
Modified: branches/release/boost/container/string.hpp
==============================================================================
--- branches/release/boost/container/string.hpp (original)
+++ branches/release/boost/container/string.hpp 2012-02-01 17:11:53 EST (Wed, 01 Feb 2012)
@@ -1021,7 +1021,7 @@
bool empty() const
{ return !this->priv_size(); }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -1032,7 +1032,7 @@
reference operator[](size_type n)
{ return *(this->priv_addr() + n); }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
@@ -1043,7 +1043,7 @@
const_reference operator[](size_type n) const
{ return *(this->priv_addr() + n); }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -1057,7 +1057,7 @@
return *(this->priv_addr() + n);
}
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
Modified: branches/release/boost/container/vector.hpp
==============================================================================
--- branches/release/boost/container/vector.hpp (original)
+++ branches/release/boost/container/vector.hpp 2012-02-01 17:11:53 EST (Wed, 01 Feb 2012)
@@ -758,7 +758,7 @@
bool empty() const BOOST_CONTAINER_NOEXCEPT
{ return !this->members_.m_size; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -769,7 +769,7 @@
reference operator[](size_type n)
{ return this->members_.m_start[n]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
@@ -780,7 +780,7 @@
const_reference operator[](size_type n) const BOOST_CONTAINER_NOEXCEPT
{ return this->members_.m_start[n]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a reference to the nth element
//! from the beginning of the container.
@@ -791,7 +791,7 @@
reference at(size_type n)
{ this->priv_check_range(n); return this->members_.m_start[n]; }
- //! <b>Requires</b>: size() < n.
+ //! <b>Requires</b>: size() > n.
//!
//! <b>Effects</b>: Returns a const reference to the nth element
//! from the beginning of the container.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk