[libcxx-commits] [PATCH] D130515: [libc++][ranges] Make sure all range algorithms support differing projection types:

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 25 13:46:25 PDT 2022


var-const created this revision.
Herald added a project: All.
var-const requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: libcxx-commits, sstefan1.
Herald added a project: libc++.
Herald added a reviewer: libc++.

- 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130515

Files:
  libcxx/include/__algorithm/includes.h
  libcxx/include/__algorithm/ranges_includes.h
  libcxx/test/std/algorithms/ranges_robust_against_differing_projections.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130515.447455.patch
Type: text/x-patch
Size: 6118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220725/e64c6b87/attachment.bin>


More information about the libcxx-commits mailing list