[PATCH] D23218: [ADT] Change iterator_adaptor_base's default template arguments to forward more underlying typedefs

Tim Shen via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 13:30:45 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL278156: [ADT] Change iterator_adaptor_base's default template arguments to forward… (authored by timshen).

Changed prior to commit:
  https://reviews.llvm.org/D23218?vs=66984&id=67408#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23218

Files:
  cfe/trunk/include/clang/AST/ExternalASTSource.h

Index: cfe/trunk/include/clang/AST/ExternalASTSource.h
===================================================================
--- cfe/trunk/include/clang/AST/ExternalASTSource.h
+++ cfe/trunk/include/clang/AST/ExternalASTSource.h
@@ -503,8 +503,9 @@
   /// We define this as a wrapping iterator around an int. The
   /// iterator_adaptor_base class forwards the iterator methods to basic integer
   /// arithmetic.
-  class iterator : public llvm::iterator_adaptor_base<
-                       iterator, int, std::random_access_iterator_tag, T, int> {
+  class iterator
+      : public llvm::iterator_adaptor_base<
+            iterator, int, std::random_access_iterator_tag, T, int, T *, T &> {
     LazyVector *Self;
 
     iterator(LazyVector *Self, int Position)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23218.67408.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160809/638aa8a1/attachment-0001.bin>


More information about the cfe-commits mailing list