libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ capacity() [2/2]

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string< _CharT, _Traits, _Alloc >::capacity ( ) const
inlinenoexcept

Returns the total number of characters that the string can hold before needing to allocate more memory.

Definition at line 1059 of file cow_string.h.

1060 { return _M_rep()->_M_capacity; }
_Rep * _M_rep() const noexcept
Definition cow_string.h:337