[libcxx-commits] [PATCH] D60849: Use const predicate operators in algorithms

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 17 20:24:05 PDT 2019


zoecarver created this revision.
zoecarver added a reviewer: mclow.lists.
Herald added subscribers: libcxx-commits, ldionne.

This patch ensures that algorithms in libc++ use const overloads for predicate operators. It also adds a file called `test_predicates.h` which holds helpful testing predicates.


Repository:
  rCXX libc++

https://reviews.llvm.org/D60849

Files:
  include/algorithm
  test/std/algorithms/alg.nonmodifying/alg.adjacent.find/adjacent_find_pred.pass.cpp
  test/std/algorithms/alg.nonmodifying/alg.all_of/all_of.pass.cpp
  test/std/algorithms/alg.nonmodifying/alg.any_of/any_of.pass.cpp
  test/std/algorithms/alg.nonmodifying/alg.find/find_if.pass.cpp
  test/support/test_predicates.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60849.195668.patch
Type: text/x-patch
Size: 5951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190418/9ce1626a/attachment-0001.bin>


More information about the libcxx-commits mailing list