[libc++] [compare] Named comparison functions, is_eq etc.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 27 Sep 2021 04:48:39 +0000 (00:48 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 29 Sep 2021 20:03:48 +0000 (16:03 -0400)
commit969359e3b86b6cd238bcb48cdaeb9be5dbeddb4b
tree1c019398378d6a7b97a6650dd7acff515fb6a7e2
parent3f8027fb67bc4efae9959a4d75f8f37ecf0c3985
[libc++] [compare] Named comparison functions, is_eq etc.

Some of these were previously half-implemented in "ordering.h";
now they're all implemented, and tested.
Note that `constexpr` functions are implicitly `inline`, so the
standard wording omits `inline` on these; but Louis and I agree
that that's surprising and it's better to be explicit about it.

Differential Revision: https://reviews.llvm.org/D110515
libcxx/include/CMakeLists.txt
libcxx/include/__compare/is_eq.h [new file with mode: 0644]
libcxx/include/__compare/ordering.h
libcxx/include/compare
libcxx/include/module.modulemap
libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp [new file with mode: 0644]
libcxx/test/std/language.support/cmp/compare.syn/named_functions.pass.cpp [new file with mode: 0644]