Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
object::capacity

Return the number of elements that can be held in currently allocated memory.

Synopsis
std::size_t
capacity() const;
Description

This number may be larger than the value returned by size().

Complexity

Constant.

Exception Safety

No-throw guarantee.


PrevUpHomeNext