21 Internet protocol [internet]

21.11 Class template ip::network_v4 [internet.network.v4]

21.11.3 ip::network_v4 comparisons [internet.network.v4.comparisons]

constexpr bool operator==(const network_v4& a, const network_v4& b) noexcept;

Returns: true if a.address() == b.address() and a.prefix_length() == b.prefix_length(), otherwise false.

constexpr bool operator!=(const network_v4& a, const network_v4& b) noexcept;

Returns: !(a == b).