[#Sock-EqualSharedPtrSock-operator_call] = xref:Sock.adoc[Sock]::xref:Sock/EqualSharedPtrSock.adoc[EqualSharedPtrSock]::operator() :relfileprefix: ../../ :mrdocs: Compare two socket wrappers by their underlying descriptor. == Synopsis Declared in `<util/sock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *lhs* | First socket to compare (may be empty). | *rhs* | Second socket to compare (may be empty). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#