llvm-project/libcxx/test/std/language.support/cmp
Ruslan Arutyunyan 8ce2675b13 [libc++][compare] Implement three_way_comparable[_with] concepts
Implementation of `three_way_comparable` and `three_way_comparable_with` concepts from <compare> header.

Please note that I have temporarily removed `<compare>` header from `<utility>` due to cyclic dependency that prevents using `<concepts>` header in `<compare>` one.

I tried to quickly resolve those issues including applying suggestions from @cjdb and dive deeper by myself but the problem seems more complicated that we thought initially.

I am in progress to prepare the patch with resolving this cyclic dependency between headers but for now I decided to put all that I have to the review to unblock people that depend on that functionality. At first glance the patch with resolving cyclic dependency is not so small (unless I find the way to make it smaller and cleaner) so I don't want to mix everything to one review.

Reviewed By: ldionne, cjdb, #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D103478
2021-09-05 12:38:08 -07:00
..
cmp.categories.pre [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
cmp.common [libcxx] removes `weak_equality` and `strong_equality` from <compare> 2021-05-10 20:45:04 +00:00
cmp.concept [libc++][compare] Implement three_way_comparable[_with] concepts 2021-09-05 12:38:08 -07:00
cmp.partialord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
cmp.result [libc++] [P1614] Implement std::compare_three_way_result. 2021-08-18 10:01:24 -04:00
cmp.strongord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
cmp.weakord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00