Check whether the network of an address is currently reachable.
Declared in <netbase.h>
[[nodiscard, requires_capability(0x7f9508970258), requires_capability(0x7f950e39ca48), requires_capability(0x7f950e923288), requires_capability(0x7f950a22b678), requires_capability(0x7f950226e538), requires_capability(0x7f9526845518), requires_capability(0x7f95213a4ae8), requires_capability(0x7f95259f2e98), requires_capability(0x7f950f0fe6c8), requires_capability(0x7f952311ece8), requires_capability(0x7f951ec04798), requires_capability(0x7f94f97240f8), requires_capability(0x7f951c5a1d08), requires_capability(0x7f9521097fe8), requires_capability(0x7f9510d40b38)]]
bool
Contains(CNetAddr const& addr) const;
True when the address's network is reachable.
The return value should not be discarded.
| Name | Description |
|---|---|
| addr | The address whose network is tested. |