[#BloombergLP-bslstl-StringRefImp-0c-length]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp]::length
:relfileprefix: ../../../
:mrdocs:

Return the length of the string referred to by this object&period; Note that this call is equivalent to `end() &hyphen; begin()`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[StringRefImp&lt;CHAR&lowbar;TYPE&gt;::size&lowbar;type]
length() const;
----

== Return Value

number of characters in the referenced string


[.small]#Created with https://www.mrdocs.com[MrDocs]#
