std::shared_ptr::unique
std::shared_ptr::unique
bool unique() const noexcept; | (deprecated) |
Checks if *this
is the only shared_ptr
instance managing the current object, i.e. whether use_count() == 1
.
Parameters
(none).
Return value
true
if *this
is the only shared_ptr
instance managing the current object, false
otherwise.
Exceptions
noexcept
specification: noexcept