cptr::operator==

Same address as the raw pointer b, as get() == b. Takes any U* that converts implicitly to T*.

Synopsis

Declared in <cptr/ptr.hpp>

template<class U>
requires std::is_convertible_v<U*, T*>
constexpr
bool
operator==(
    basic_ptr a,
    U* b) noexcept;

NOTE

This function is a hidden friend of basic_ptr, 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
aThe left operand
bThe right operand