mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Documentation fix. Ticket 6499
[SVN r76828]
This commit is contained in:
@@ -715,7 +715,7 @@ class deque : protected deque_base<T, A>
|
||||
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 @@ class deque : protected deque_base<T, A>
|
||||
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 @@ class deque : protected deque_base<T, A>
|
||||
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 @@ class deque : protected deque_base<T, A>
|
||||
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.
|
||||
|
@@ -927,7 +927,7 @@ class stable_vector
|
||||
}
|
||||
}
|
||||
|
||||
//! <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 @@ class stable_vector
|
||||
//! <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 @@ class stable_vector
|
||||
//! <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 @@ class stable_vector
|
||||
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
|
||||
|
@@ -1021,7 +1021,7 @@ class basic_string
|
||||
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 @@ class basic_string
|
||||
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 @@ class basic_string
|
||||
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 @@ class basic_string
|
||||
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.
|
||||
|
@@ -758,7 +758,7 @@ class vector : private container_detail::vector_alloc_holder<A>
|
||||
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 @@ class vector : private container_detail::vector_alloc_holder<A>
|
||||
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 @@ class vector : private container_detail::vector_alloc_holder<A>
|
||||
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 @@ class vector : private container_detail::vector_alloc_holder<A>
|
||||
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.
|
||||
|
Reference in New Issue
Block a user