bool expired() const;
Checks whether the managed object has already been deleted. Equivalent to use_count() == 0.
true if the managed object has already been deleted, false otherwise.
expired() may be faster than Template:rlpf.
Demonstrates how expired is used to check validity of the pointer.
gw is valid gw is expired