bsl::basic_string<char8_t>::size

Return the length of this string. Note that this number may differ from CHAR_TRAITS::length(c_str()) in case the string contains null characters. Also note that a null-terminating character added by the c_str method is not counted in this length.

Synopsis

Declared in <bslstl_string.h>

size_type
size() const noexcept;