Correct "throws" part of several operations as the library by default throws its own exception types.

This commit is contained in:
Ion Gaztañaga committed 2021-01-02 16:24:37 +01:00
1 parent ba23ac1a5a
commit d6a270e8e1
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -1732,7 +1732,7 @@ private:
//! <b>Effects</b>: Returns a reference to the nth element
//! 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.
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
//! 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.
BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE const_reference at(size_type n) const