This is an archive of the discontinued LLVM Phabricator instance.

[libc++][spaceship] Implement `operator<=>` for `map` and `multimap`
ClosedPublic

Authored by H-G-Hristov on Mar 13 2023, 12:12 PM.

Details

Summary

Implements parts of P1614R2: operator<=> for map and multimap

Diff Detail

Event Timeline

H-G-Hristov created this revision.Mar 13 2023, 12:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 12:12 PM
Herald added a subscriber: yaxunl. · View Herald Transcript
H-G-Hristov requested review of this revision.Mar 13 2023, 12:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 12:12 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
  • Updated links
philnik accepted this revision.Mar 14 2023, 2:54 PM
philnik added a subscriber: philnik.

LGTM % nit.

libcxx/test/libcxx/containers/associative/map/compare.three_way.pass.cpp
27

Most of the tests don't have a constexpr path. There is no need to call it out here.

This revision is now accepted and ready to land.Mar 14 2023, 2:54 PM
H-G-Hristov added inline comments.Mar 14 2023, 3:01 PM
libcxx/test/libcxx/containers/associative/map/compare.three_way.pass.cpp
27

I kept this pattern from the original patch here: https://reviews.llvm.org/D132312
Shall I delete it now or create a new patch later to delete this line from all patches at once?

H-G-Hristov added inline comments.Mar 14 2023, 3:04 PM
libcxx/test/libcxx/containers/associative/map/compare.three_way.pass.cpp
27

What I mean it is already present in patches that have landed but also in all that are waiting for a review.

philnik added inline comments.Mar 14 2023, 3:12 PM
libcxx/test/libcxx/containers/associative/map/compare.three_way.pass.cpp
27

Ah OK. I missed that this already exists in other operator<=> patches. Then I'm fine with it as-is.

@philnik Thank you for the review. The CI error appears to be unrelated. Is anything else necessary to do before landing this? Could you do that for me again, please.

@philnik Thank you for the review. The CI error appears to be unrelated. Is anything else necessary to do before landing this? Could you do that for me again, please.

You might want to consider getting commit access if you plan to continue contributing. See https://www.llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access for details.

This revision was landed with ongoing or failed builds.Mar 15 2023, 7:25 AM
This revision was automatically updated to reflect the committed changes.

@philnik Thank you for the review. The CI error appears to be unrelated. Is anything else necessary to do before landing this? Could you do that for me again, please.

You might want to consider getting commit access if you plan to continue contributing. See https://www.llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access for details.

Thank you for committing!!! I requested commit access.