Return false; the copy/move state is not a salient attribute, so all CopyMoveTracker objects compare equal. Note that this operator is called implicitly if a client class defines a defaulted comparison operator (C++20), but will not be selected by overload resolution for a derived class having no comparison operator.

Synopsis

Declared in <bsltf_copymovetracker.h>

constexpr
bool
operator!=(
    CopyMoveTracker const&,
    OTHER const&)
requires bsl::is_same<CopyMoveTracker, OTHER>::value;

Created with MrDocs