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

Return `true` if this object represents an empty string value, and `false` otherwise&period; This object represents an empty string value if `begin() &equals;&equals; end()`&period; Note that this method is functionally identical with the `isEmpty` method and allows developers to avoid distracting syntax differences when `StringRef` appears in juxtaposition with `string`, which defines `empty` but not `isEmpty`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
empty() const;
----


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