Skip to content

QuantumGate::IPAddress::IsClassA

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

Checks whether the IP address is a class A address.

Signature

constexpr const IsClassA() const noexcept;

Return values

Returns true if the IP address is a class A address, otherwise false. If the first bit of an IPv4 address is 0, this means that the address is part of class A. This means that any address from 0.0.0.0 to 127.255.255.255 is in class A.

Clone this wiki locally