std::weak_ptr::expired
From cppreference.com
bool expired() const; |
(since C++11) | |
Checks whether the managed object has already been deleted. Equivalent to use_count() == 0.
Contents |
[edit] Parameters
(none)
[edit] Return value
true if the managed object has already been deleted, false otherwise.
[edit] Exceptions
[edit] Notes
expired() may be faster than use_count().
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
creates a shared_ptr that manages the referenced object (public member function) | |
returns the number of shared_ptr objects that manage the object (public member function) |