Is it possible that `shared_ptr::use_count() == 0` and `shared_ptr::get() != nullptr`?

  c++, c++11, lifetime, multithreading, shared-ptr

From the cppref:

Notes

An empty shared_ptr (where use_count() == 0) may store a
non-null pointer accessible by get(), e.g. if it were created using
the aliasing constructor.

Is it possible that shared_ptr::use_count() == 0 and shared_ptr::get() != nullptr?

Any example to illustrate that is true?

Source: Windows Questions C++

LEAVE A COMMENT