[#ReachableNets-Contains-06] = xref:ReachableNets.adoc[ReachableNets]::Contains :relfileprefix: ../ :mrdocs: `Contains` overloads == Synopses Declared in `<netbase.h>` Check whether a network is currently reachable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool xref:ReachableNets/Contains-04.adoc[Contains](xref:Network.adoc[Network] net) const; ---- [.small]#xref:ReachableNets/Contains-04.adoc[_» more..._]# Check whether the network of an address is currently reachable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool xref:ReachableNets/Contains-01.adoc[Contains](xref:CNetAddr.adoc[CNetAddr] const& addr) const; ---- [.small]#xref:ReachableNets/Contains-01.adoc[_» more..._]# == Return Value * True when the network is reachable. * True when the address's network is reachable. [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. | *addr* | The address whose network is tested. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#