bsl::operator==

Return true if the specified lhs shared pointer does not refer to an object, and false otherwise.

Synopsis

Declared in <bslstl_sharedptr.h>

template<class LHS_TYPE>
bool
operator==(
    shared_ptr<LHS_TYPE> const& lhs,
    nullptr_t nullPointerLiteral) noexcept;

Return Value

true if lhs does not refer to an object

Parameters

NameDescription
lhsleft-hand side operand
nullPointerLiteralnull-pointer literal (unused; selects this overload)