...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return the number of elements that can be held in currently allocated memory.
std::size_t
capacity() const noexcept;
This number may be larger than the value returned by size()
.
Constant.
No-throw guarantee.