bool identity(const copy_on_write& x) const noexcept
(1)

Used to see if two copy_on_write items refer to the same instance.

  1. Used to see if two copy_on_write items refer to the same instance.

Return value

true iff the underlying object instance is shared by both objects. false otherwise.