ReachableNets::Contains

Contains overloads

Synopses

Declared in <netbase.h>

Check whether a network is currently reachable.

[[nodiscard, requires_capability(0x7f9508970148), requires_capability(0x7f950e39c938), requires_capability(0x7f950e923178), requires_capability(0x7f950a22b568), requires_capability(0x7f950226e428), requires_capability(0x7f9526845408), requires_capability(0x7f95213a49d8), requires_capability(0x7f95259f2d88), requires_capability(0x7f950f0fe5b8), requires_capability(0x7f952311ebd8), requires_capability(0x7f951ec04688), requires_capability(0x7f94f9723fe8), requires_capability(0x7f951c5a1bf8), requires_capability(0x7f9521097ed8), requires_capability(0x7f9510d40a28)]]
bool
Contains(Network net) const;
» more...

Check whether the network of an address is currently reachable.

[[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;
» more...

Return Value

  • True when the network is reachable.
  • True when the address's network is reachable.

NOTE

The return value should not be discarded.

Parameters

NameDescription
netThe network to test.
addrThe address whose network is tested.