[PATCH] D26999: Add some functions to search ArrayRefs

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 14:51:23 PST 2016


zturner updated this revision to Diff 78954.
zturner added a comment.

- Deleted member `find_if` and `find_if_not`
- Deleted `npos`
- Convert `take` / `drop` functions to use `llvm::find_if` and `llvm::find_if_not` free functions.
- Updated the aforementioned functions to take a templatized predicate instead of an `llvm::function_ref`.


https://reviews.llvm.org/D26999

Files:
  include/llvm/ADT/ArrayRef.h
  include/llvm/ADT/STLExtras.h
  unittests/ADT/ArrayRefTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26999.78954.patch
Type: text/x-patch
Size: 7750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/ae3d20c1/attachment.bin>


More information about the llvm-commits mailing list