[#ReachableNets-Contains-01] = xref:ReachableNets.adoc[ReachableNets]::Contains :relfileprefix: ../ :mrdocs: Check whether the network of an address is currently reachable. == Synopsis Declared in `<netbase.h>` [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 Contains(xref:CNetAddr.adoc[CNetAddr] const& addr) const; ---- == Return Value 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 | *addr* | The address whose network is tested. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#