21 Internet protocol [internet]

21.19 Class ip::tcp [internet.tcp]

21.19.1 ip::tcp comparisons [internet.tcp.comparisons]

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

Returns: A boolean indicating whether two objects of class tcp are equal, such that the expression tcp::v4() == tcp::v4() is true, the expression tcp::v6() == tcp::v6() is true, and the expression tcp::v4() == tcp::v6() is false.

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

Returns: !(a == b).