[#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(0x7f2e3b6cb8d8), requires&lowbar;capability(0x7f2e2a4e7598), requires&lowbar;capability(0x7f2e283bb2a8), requires&lowbar;capability(0x7f2e2226d028), requires&lowbar;capability(0x7f2e261196a8), requires&lowbar;capability(0x7f2e426904f8), requires&lowbar;capability(0x7f2e20fbea08), requires&lowbar;capability(0x7f2e29137a48), requires&lowbar;capability(0x7f2e417144d8), requires&lowbar;capability(0x7f2e409b8208), requires&lowbar;capability(0x7f2e18117358), requires&lowbar;capability(0x7f2e3674fea8), requires&lowbar;capability(0x7f2e33b87c08), requires&lowbar;capability(0x7f2e12856698), requires&lowbar;capability(0x7f2e29e25a78)&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]#
