[#bsl-basic_string-0faf-length] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::length :relfileprefix: ../../ :mrdocs: Return the length of this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/size_type.adoc[size_type] length() const noexcept; ---- == Return Value length of this string [.small]#Created with https://www.mrdocs.com[MrDocs]#