[#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(0x7ff3792c6878), requires_capability(0x7ff36e51f828), requires_capability(0x7ff36d6277d8), requires_capability(0x7ff37e1a3788), requires_capability(0x7ff376300558), requires_capability(0x7ff381782b58), requires_capability(0x7ff3798e3148), requires_capability(0x7ff3818bb7f8), requires_capability(0x7ff38f9db938), requires_capability(0x7ff38984b848), requires_capability(0x7ff3799236b8), requires_capability(0x7ff38295f8d8), requires_capability(0x7ff37faf1d48), requires_capability(0x7ff36669b708), requires_capability(0x7ff391031a88)]] 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(0x7ff3792c6988), requires_capability(0x7ff36e51f938), requires_capability(0x7ff36d6278e8), requires_capability(0x7ff37e1a3898), requires_capability(0x7ff376300668), requires_capability(0x7ff381782c68), requires_capability(0x7ff3798e3258), requires_capability(0x7ff3818bb908), requires_capability(0x7ff38f9dba48), requires_capability(0x7ff38984b958), requires_capability(0x7ff3799237c8), requires_capability(0x7ff38295f9e8), requires_capability(0x7ff37faf1e58), requires_capability(0x7ff36669b818), requires_capability(0x7ff391031b98)]] 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]#