[#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, requires_capability(0x7f2e3b6cb7c8), requires_capability(0x7f2e2a4e7488), requires_capability(0x7f2e283bb198), requires_capability(0x7f2e2226cf18), requires_capability(0x7f2e26119598), requires_capability(0x7f2e426903e8), requires_capability(0x7f2e20fbe8f8), requires_capability(0x7f2e29137938), requires_capability(0x7f2e417143c8), requires_capability(0x7f2e409b80f8), requires_capability(0x7f2e18117248), requires_capability(0x7f2e3674fd98), requires_capability(0x7f2e33b87af8), requires_capability(0x7f2e12856588), requires_capability(0x7f2e29e25968)]] 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, requires_capability(0x7f2e3b6cb8d8), requires_capability(0x7f2e2a4e7598), requires_capability(0x7f2e283bb2a8), requires_capability(0x7f2e2226d028), requires_capability(0x7f2e261196a8), requires_capability(0x7f2e426904f8), requires_capability(0x7f2e20fbea08), requires_capability(0x7f2e29137a48), requires_capability(0x7f2e417144d8), requires_capability(0x7f2e409b8208), requires_capability(0x7f2e18117358), requires_capability(0x7f2e3674fea8), requires_capability(0x7f2e33b87c08), requires_capability(0x7f2e12856698), requires_capability(0x7f2e29e25a78)]] 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]#