[all-commits] [llvm/llvm-project] 969359: [libc++] [compare] Named comparison functions, is_...

Quuxplusone via All-commits all-commits at lists.llvm.org
Wed Sep 29 13:05:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 969359e3b86b6cd238bcb48cdaeb9be5dbeddb4b
      https://github.com/llvm/llvm-project/commit/969359e3b86b6cd238bcb48cdaeb9be5dbeddb4b
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__compare/is_eq.h
    M libcxx/include/__compare/ordering.h
    M libcxx/include/compare
    M libcxx/include/module.modulemap
    A libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp
    A libcxx/test/std/language.support/cmp/compare.syn/named_functions.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list