[#Sock-EqualSharedPtrSock-operator_call]
= xref:Sock.adoc[Sock]::xref:Sock/EqualSharedPtrSock.adoc[EqualSharedPtrSock]::operator()
:relfileprefix: ../../
:mrdocs:

Compare two socket wrappers by their underlying descriptor&period;

== Synopsis

Declared in `&lt;util&sol;sock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
operator()(
    std::shared&lowbar;ptr&lt;Sock const&gt; const& lhs,
    std::shared&lowbar;ptr&lt;Sock const&gt; const& rhs) const;
----

== Return Value

true if both wrap the same descriptor or both are empty, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| First socket to compare (may be empty)&period;
| *rhs*
| Second socket to compare (may be empty)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
