bool unique() const noexcept
(1)
bool unique_instance() const noexcept
(2)

Returns if the object instance reference count is one

  1. Returns if the object instance reference count is one. This is useful to determine if writing will cause a copy.

  2. Forwarding routine for unique.

    [[deprecated]]

Return value

true iff the object instance reference count is one. false otherwise.