Return whether two CopyMoveTracker objects have the same value.

Synopsis

Declared in <bsltf_copymovetracker.h>

template<class OTHER>
constexpr
bool
operator==(
    CopyMoveTracker const& lhs,
    OTHER const& rhs)
requires bsl::is_same<CopyMoveTracker, OTHER>::value;
Note

This function is a hidden friend of CopyMoveTracker, declared only inside that class: it can be found only through argument-dependent lookup.

Description

Return true; 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.

Return Value

true

Parameters

Name

Description

lhs

left‐hand operand

rhs

right‐hand operand

Created with MrDocs