Sock::EqualSharedPtrSock::operator()

Compare two socket wrappers by their underlying descriptor.

Synopsis

Declared in <util/sock.h>

bool
operator()(
    std::shared_ptr<Sock const> const& lhs,
    std::shared_ptr<Sock const> const& rhs) const;

Return Value

true if both wrap the same descriptor or both are empty, false otherwise.

Parameters

NameDescription
lhsFirst socket to compare (may be empty).
rhsSecond socket to compare (may be empty).