Represents an IP version 4 address (32 bits) Can be converted to an IPv6.
More...
#include <ip.hpp>
Represents an IP version 4 address (32 bits) Can be converted to an IPv6.
Definition at line 59 of file ip.hpp.
◆ init() [1/4]
◆ init() [2/4]
◆ init() [3/4]
◆ init() [4/4]
◆ operator!=()
bool mtcore::IPv4::operator!= |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 71 of file ip.hpp.
71{ return (*this <=> o) != 0; }
◆ operator<()
bool mtcore::IPv4::operator< |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 74 of file ip.hpp.
74{ return (*this <=> o) < 0; }
◆ operator<=()
bool mtcore::IPv4::operator<= |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 72 of file ip.hpp.
72{ return (*this <=> o) <= 0; }
◆ operator<=>()
std::strong_ordering mtcore::IPv4::operator<=> |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
◆ operator==()
bool mtcore::IPv4::operator== |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 70 of file ip.hpp.
70{ return (*this <=> o) == 0; }
◆ operator>()
bool mtcore::IPv4::operator> |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 75 of file ip.hpp.
75{ return (*this <=> o) > 0; }
◆ operator>=()
bool mtcore::IPv4::operator>= |
( |
const IPv4 & | o | ) |
const |
|
inlinenodiscardnoexcept |
Definition at line 73 of file ip.hpp.
73{ return (*this <=> o) >= 0; }
◆ to_v6()
IPv6 mtcore::IPv4::to_v6 |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ bits
u32 mtcore::IPv4::bits = 0 |
The documentation for this struct was generated from the following file: