Contains overloads
Synopses
Declared in <netbase.h>
Check whether a network is currently reachable.
[[nodiscard, requires_capability(0x7ff3792c6878), requires_capability(0x7ff36e51f828), requires_capability(0x7ff36d6277d8), requires_capability(0x7ff37e1a3788), requires_capability(0x7ff376300558), requires_capability(0x7ff381782b58), requires_capability(0x7ff3798e3148), requires_capability(0x7ff3818bb7f8), requires_capability(0x7ff38f9db938), requires_capability(0x7ff38984b848), requires_capability(0x7ff3799236b8), requires_capability(0x7ff38295f8d8), requires_capability(0x7ff37faf1d48), requires_capability(0x7ff36669b708), requires_capability(0x7ff391031a88)]]
bool
Contains(Network net) const;
Check whether the network of an address is currently reachable.
[[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;
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
Name |
Description |
net |
The network to test. |
addr |
The address whose network is tested. |
Created with MrDocs