ReachableNets::Contains

Contains overloads

Synopses

Declared in <netbase.h>

Check whether a network is currently reachable.

[[nodiscard]]
bool
Contains(Network net) const;
» more...

Check whether the network of an address is currently reachable.

[[nodiscard]]
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.