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

Hash the wrapped socket descriptor&period;

== Synopsis

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

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

== Return Value

The socket descriptor, or the maximum `SOCKET` value if `s` is empty&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The socket to hash (may be empty)&period;
|===


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