Return the capacity of this string, i.e., the maximum length for which resizing is guaranteed not to trigger a reallocation.
Declared in <bslstl_string.h>
<bslstl_string.h>
size_type capacity() const noexcept;