Check whether the network of an address is currently reachable.
Declared in <netbase.h>
[[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(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. |