ReachableNets::Contains

Check whether the network of an address is currently reachable.

Synopsis

Declared in <netbase.h>

[[nodiscard, requires_capability(0x7fb98611ae58), requires_capability(0x7fb96e2cd148), requires_capability(0x7fb97a08ca98), requires_capability(0x7fb966376808), requires_capability(0x7fb96a28e618), requires_capability(0x7fb977b82c28), requires_capability(0x7fb95e84c008), requires_capability(0x7fb979f7a968), requires_capability(0x7fb95fbec948), requires_capability(0x7fb95c880578), requires_capability(0x7fb97755baf8), requires_capability(0x7fb96f3ae948), requires_capability(0x7fb967598038), requires_capability(0x7fb9782e56b8), requires_capability(0x7fb97542f328)]]
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.