mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Fixes #127 ("Fix docs for static_vector::max_size() and capacity()")
This commit is contained in:
@@ -1322,6 +1322,7 @@ use [*Boost.Container]? There are several reasons for that:
|
||||
[section:release_notes_boost_1_72_00 Boost 1.72 Release]
|
||||
|
||||
* Fixed bugs:
|
||||
* [@https://github.com/boostorg/container/issues/127 GitHub #127: ['"Fix docs for static_vector::max_size() and capacity()"]].
|
||||
* [@https://github.com/boostorg/container/issues/132 GitHub #132: ['"flat_map::lower_bound and upper_bound have wrong/misleading docs"]].
|
||||
* [@https://github.com/boostorg/container/issues/133 GitHub #133: ['"basic_string move constructor with allocator argument has incorrect allocator check"]].
|
||||
|
||||
|
@@ -1116,16 +1116,7 @@ public:
|
||||
//! Constant O(1).
|
||||
const_reverse_iterator crend() const BOOST_NOEXCEPT_OR_NOTHROW;
|
||||
|
||||
//! @brief Returns container's capacity.
|
||||
//!
|
||||
//! @return container's capacity.
|
||||
//!
|
||||
//! @par Throws
|
||||
//! Nothing.
|
||||
//!
|
||||
//! @par Complexity
|
||||
//! Constant O(1).
|
||||
static size_type capacity() BOOST_NOEXCEPT_OR_NOTHROW;
|
||||
#endif //#ifdef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||
|
||||
//! @brief Returns container's capacity.
|
||||
//!
|
||||
@@ -1136,7 +1127,22 @@ public:
|
||||
//!
|
||||
//! @par Complexity
|
||||
//! Constant O(1).
|
||||
static size_type max_size() BOOST_NOEXCEPT_OR_NOTHROW;
|
||||
BOOST_CONTAINER_FORCEINLINE static size_type capacity() BOOST_NOEXCEPT_OR_NOTHROW
|
||||
{ return static_capacity; }
|
||||
|
||||
//! @brief Returns container's capacity.
|
||||
//!
|
||||
//! @return container's capacity.
|
||||
//!
|
||||
//! @par Throws
|
||||
//! Nothing.
|
||||
//!
|
||||
//! @par Complexity
|
||||
//! Constant O(1).
|
||||
BOOST_CONTAINER_FORCEINLINE static size_type max_size() BOOST_NOEXCEPT_OR_NOTHROW
|
||||
{ return static_capacity; }
|
||||
|
||||
#ifdef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||
|
||||
//! @brief Returns the number of stored elements.
|
||||
//!
|
||||
|
Reference in New Issue
Block a user