[#ReachableNets-Contains-01]
= xref:ReachableNets.adoc[ReachableNets]::Contains
:relfileprefix: ../
:mrdocs:

Check whether the network of an address is currently reachable&period;

== Synopsis

Declared in `&lt;netbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, requires&lowbar;capability(0x7f9508970258), requires&lowbar;capability(0x7f950e39ca48), requires&lowbar;capability(0x7f950e923288), requires&lowbar;capability(0x7f950a22b678), requires&lowbar;capability(0x7f950226e538), requires&lowbar;capability(0x7f9526845518), requires&lowbar;capability(0x7f95213a4ae8), requires&lowbar;capability(0x7f95259f2e98), requires&lowbar;capability(0x7f950f0fe6c8), requires&lowbar;capability(0x7f952311ece8), requires&lowbar;capability(0x7f951ec04798), requires&lowbar;capability(0x7f94f97240f8), requires&lowbar;capability(0x7f951c5a1d08), requires&lowbar;capability(0x7f9521097fe8), requires&lowbar;capability(0x7f9510d40b38)&rsqb;&rsqb;
bool
Contains(xref:CNetAddr.adoc[CNetAddr] const& addr) const;
----

== Return Value

True when the address&apos;s network is reachable&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr*
| The address whose network is tested&period;
|===


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