[PATCH] D45792: [ADT] Teach reverse() about filter_iterator ranges

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 08:42:05 PDT 2018


aprantl added inline comments.


================
Comment at: include/llvm/ADT/STLExtras.h:286
 
+  // Used to implement a predicate to check if an object is a filter_iterator.
+  template<typename Ty>
----------------
///


================
Comment at: include/llvm/ADT/STLExtras.h:329
+// Returns an iterator_range over the given container which iterates in reverse.
+// Note that the container must have rbegin()/rend() methods for this to work.
+template <typename ContainerTy>
----------------
///
there's more below...


https://reviews.llvm.org/D45792





More information about the llvm-commits mailing list