Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::weak_ptr >> std::experimental::weak_ptr::expired member function

The expired member function returns true if there are no std::experimental::shared_ptr or std::experimental::atomic_shared_ptr instances that share ownership with *this.

bool expired() const noexcept;

Returns:

this->use_count()==0.

Throws:

Nothing

Header

#include <experimental/atomic>

See Also