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

The unique member function identifies whether or not *this shares ownership of its object with any other std::experimental::shared_ptr or std::experimental::atomic_shared_ptr instances.

bool unique() const noexcept;

Returns:

this->use_count()==1

Throws:

Nothing

Header

#include <experimental/atomic>

See Also