[all-commits] [llvm/llvm-project] 964aeb: [libc++][ranges] Make sure all range algorithms su...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Tue Jul 26 15:52:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 964aeb713e7be96c2fb9ee06eb6bf47d72de26ca
      https://github.com/llvm/llvm-project/commit/964aeb713e7be96c2fb9ee06eb6bf47d72de26ca
  Author: Konstantin Varlamov <varconst at apple.com>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M libcxx/include/__algorithm/includes.h
    M libcxx/include/__algorithm/ranges_includes.h
    A libcxx/test/std/algorithms/ranges_robust_against_differing_projections.pass.cpp

  Log Message:
  -----------
  [libc++][ranges] Make sure all range algorithms support differing projection types:

- for all algorithms taking more than one range, add a `robust` test to
  check the case where the ranges have different value types and the
  given projections are different, with each projection applying to
  a different value type;
- fix `ranges::include` to apply the correct projection to each range.

Differential Revision: https://reviews.llvm.org/D130515




More information about the All-commits mailing list