cptr::operator==

Same pointer and same payload.

Synopsis

Declared in <cptr/pack.hpp>

constexpr
bool
operator==(
    ptr_with_payload const& lhs,
    ptr_with_payload const& rhs) noexcept = default;

NOTE

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

Return Value

true if the objects are equal, false otherwise

Parameters

NameDescription
lhsThe left operand
rhsThe right operand