Endpoint order#266
Conversation
Add a strict total ordering to endpoint so it can be used as a key in std::map and std::set without a custom comparator. Endpoints order by address family (IPv4 before IPv6), then address value, then port, consistent with operator==. Drop the now-redundant explicit operator!=; C++20 synthesizes it from operator==, matching local_endpoint's comparison surface. Closes cppalliance#258
Add unit tests for local_endpoint's operator== and operator<=>, which were previously untested public API. Covers empty-first ordering, prefix-before-extension, abstract-socket sorting (leading null byte), the path-too-long boundary, and use as a std::map key.
|
An automated preview of the documentation is available at https://266.corosio.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-06-02 18:18:37 UTC |
|
GCOVR code coverage report https://266.corosio.prtest3.cppalliance.org/gcovr/index.html Build time: 2026-06-02 18:25:25 UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #266 +/- ##
========================================
Coverage 77.78% 77.78%
========================================
Files 96 96
Lines 7256 7256
Branches 1769 1769
========================================
Hits 5644 5644
Misses 1102 1102
Partials 510 510
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Resolves #258.