mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 05:24:31 +02:00
Correct "throws" part of several operations as the library by default throws its own exception types.
This commit is contained in:
@@ -1395,7 +1395,7 @@ class deque : protected deque_base<typename real_allocator<T, Allocator>::type,
|
|||||||
//! <b>Effects</b>: Returns a reference to the nth element
|
//! <b>Effects</b>: Returns a reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
||||||
@@ -1410,7 +1410,7 @@ class deque : protected deque_base<typename real_allocator<T, Allocator>::type,
|
|||||||
//! <b>Effects</b>: Returns a const reference to the nth element
|
//! <b>Effects</b>: Returns a const reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
||||||
|
@@ -1038,7 +1038,7 @@ class slist
|
|||||||
//! <b>Effects</b>: Transfers all the elements of list x to this list, after the
|
//! <b>Effects</b>: Transfers all the elements of list x to this list, after the
|
||||||
//! the element pointed by p. No destructors or copy constructors are called.
|
//! the element pointed by p. No destructors or copy constructors are called.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::runtime_error if this' allocator and x's allocator
|
//! <b>Throws</b>: runtime_error if this' allocator and x's allocator
|
||||||
//! are not equal.
|
//! are not equal.
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Linear to the elements in x.
|
//! <b>Complexity</b>: Linear to the elements in x.
|
||||||
@@ -1058,7 +1058,7 @@ class slist
|
|||||||
//! <b>Effects</b>: Transfers all the elements of list x to this list, after the
|
//! <b>Effects</b>: Transfers all the elements of list x to this list, after the
|
||||||
//! the element pointed by p. No destructors or copy constructors are called.
|
//! the element pointed by p. No destructors or copy constructors are called.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::runtime_error if this' allocator and x's allocator
|
//! <b>Throws</b>: runtime_error if this' allocator and x's allocator
|
||||||
//! are not equal.
|
//! are not equal.
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Linear to the elements in x.
|
//! <b>Complexity</b>: Linear to the elements in x.
|
||||||
|
@@ -1441,7 +1441,7 @@ class stable_vector
|
|||||||
//! <b>Effects</b>: Returns a reference to the nth element
|
//! <b>Effects</b>: Returns a reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
||||||
@@ -1458,7 +1458,7 @@ class stable_vector
|
|||||||
//! <b>Effects</b>: Returns a const reference to the nth element
|
//! <b>Effects</b>: Returns a const reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE
|
||||||
|
@@ -1732,7 +1732,7 @@ private:
|
|||||||
//! <b>Effects</b>: Returns a reference to the nth element
|
//! <b>Effects</b>: Returns a reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference at(size_type n)
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference at(size_type n)
|
||||||
@@ -1746,7 +1746,7 @@ private:
|
|||||||
//! <b>Effects</b>: Returns a const reference to the nth element
|
//! <b>Effects</b>: Returns a const reference to the nth element
|
||||||
//! from the beginning of the container.
|
//! from the beginning of the container.
|
||||||
//!
|
//!
|
||||||
//! <b>Throws</b>: std::range_error if n >= size()
|
//! <b>Throws</b>: range_error if n >= size()
|
||||||
//!
|
//!
|
||||||
//! <b>Complexity</b>: Constant.
|
//! <b>Complexity</b>: Constant.
|
||||||
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference at(size_type n) const
|
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference at(size_type n) const
|
||||||
|
Reference in New Issue
Block a user