ReachableNets::Contains

Check whether the network of an address is currently reachable.

Synopsis

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;

Return Value

True when the address's network is reachable.

NOTE

The return value should not be discarded.

Parameters

NameDescription
addrThe address whose network is tested.