cptr::operator==

True if null, for a literal 0 or NULL. Any other integer does not compile.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
bool
operator==(
    basic_ptr a,
    detail::null_literal 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