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

`Contains` overloads

== Synopses

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

Check whether a network is currently reachable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, requires&lowbar;capability(0x7f9508970148), requires&lowbar;capability(0x7f950e39c938), requires&lowbar;capability(0x7f950e923178), requires&lowbar;capability(0x7f950a22b568), requires&lowbar;capability(0x7f950226e428), requires&lowbar;capability(0x7f9526845408), requires&lowbar;capability(0x7f95213a49d8), requires&lowbar;capability(0x7f95259f2d88), requires&lowbar;capability(0x7f950f0fe5b8), requires&lowbar;capability(0x7f952311ebd8), requires&lowbar;capability(0x7f951ec04688), requires&lowbar;capability(0x7f94f9723fe8), requires&lowbar;capability(0x7f951c5a1bf8), requires&lowbar;capability(0x7f9521097ed8), requires&lowbar;capability(0x7f9510d40a28)&rsqb;&rsqb;
bool
xref:ReachableNets/Contains-04.adoc[Contains](xref:Network.adoc[Network] net) const;
----

[.small]#xref:ReachableNets/Contains-04.adoc[_» more&period;&period;&period;_]#

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


[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
xref:ReachableNets/Contains-01.adoc[Contains](xref:CNetAddr.adoc[CNetAddr] const& addr) const;
----

[.small]#xref:ReachableNets/Contains-01.adoc[_» more&period;&period;&period;_]#

== Return Value

* True when the network is reachable&period;
* 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
| *net*
| The network to test&period;
| *addr*
| The address whose network is tested&period;
|===


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