Skip to content

QuantumGate::IPAddress::IsClassB

Karel Donk edited this page Dec 23, 2021 · 3 revisions

Checks whether the IP address is a class B address.

Signature

constexpr bool IsClassB() const noexcept;

Return values

Returns true if the IP address is a class B address, otherwise false. Class B includes any IPv4 address from 128.0.0.0 to 191.255.255.255. This represents the addresses that have a 1 for their first bit, and a 0 for their second bit.

Clone this wiki locally