[#bsl-weak_ptr-0d-expired]
= xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak&lowbar;ptr]::expired
:relfileprefix: ../../
:mrdocs:

Return `true` if this weak pointer is in the empty state or the object that it originally referenced has been destroyed, and `false` otherwise&period;

== Synopsis

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

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

== Return Value

`true` if this weak pointer is empty or its object was destroyed


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