]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Minor refactoring in <experimental/internet>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 Apr 2021 12:43:23 +0000 (13:43 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 24 Aug 2021 14:13:17 +0000 (15:13 +0100)
commitd1bdd54b03f6b15dde53007217f4b8d41fa1d67d
tree680de6faf82bb4cb0096193886edb82a6843a21d
parenta42b4a9df36cca7b0963542f3283aff3ca8e05a3
libstdc++: Minor refactoring in <experimental/internet>

libstdc++-v3/ChangeLog:

* include/experimental/internet (address_v6::bytes_type): Adjust
formatting.
(basic_endpoint): Define _M_is_v6() to put all checks for
AF_INET6 in one place.
(basic_endpoint::resize): Simplify.
(operator==(const tcp&, const tcp&)): Add constexpr and noexcept.
(operator!=(const tcp&, const tcp&)): Likewise.
(operator==(const udp&, const udp&)): Likewise.
(operator!=(const udp&, const udp&)): Likewise.
* testsuite/experimental/net/internet/tcp.cc: New test.
* testsuite/experimental/net/internet/udp.cc: New test.

(cherry picked from commit 39073938b4e85fdbdc897c32e56fb5fc59ded9b5)
libstdc++-v3/include/experimental/internet
libstdc++-v3/testsuite/experimental/net/internet/tcp.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/net/internet/udp.cc [new file with mode: 0644]
This page took 0.059227 seconds and 5 git commands to generate.