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

Check whether a network 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(0x7f2e3b6cb7c8), requires&lowbar;capability(0x7f2e2a4e7488), requires&lowbar;capability(0x7f2e283bb198), requires&lowbar;capability(0x7f2e2226cf18), requires&lowbar;capability(0x7f2e26119598), requires&lowbar;capability(0x7f2e426903e8), requires&lowbar;capability(0x7f2e20fbe8f8), requires&lowbar;capability(0x7f2e29137938), requires&lowbar;capability(0x7f2e417143c8), requires&lowbar;capability(0x7f2e409b80f8), requires&lowbar;capability(0x7f2e18117248), requires&lowbar;capability(0x7f2e3674fd98), requires&lowbar;capability(0x7f2e33b87af8), requires&lowbar;capability(0x7f2e12856588), requires&lowbar;capability(0x7f2e29e25968)&rsqb;&rsqb;
bool
Contains(xref:Network.adoc[Network] net) const;
----

== Return Value

True when the 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
| *net*
| The network to test&period;
|===


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