cptr::operator==

True if null. A template, as are the overloads below, so that only one of them takes a literal 0.

Synopsis

Declared in <cptr/ptr.hpp>

template<class N>
requires std::is_null_pointer_v<N>
constexpr
bool
operator==(
    basic_ptr a,
    N rhs) 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
rhsThe right operand