[libc-commits] [libc] 12c62a6 - clean up std::iterator in LibcBenchmark.h

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Sun Oct 23 03:33:57 PDT 2022


Author: Schrodinger ZHU Yifan
Date: 2022-10-23T10:33:45Z
New Revision: 12c62a67183e1b390e625f29cb832c15eba5089c

URL: https://github.com/llvm/llvm-project/commit/12c62a67183e1b390e625f29cb832c15eba5089c
DIFF: https://github.com/llvm/llvm-project/commit/12c62a67183e1b390e625f29cb832c15eba5089c.diff

LOG: clean up std::iterator in LibcBenchmark.h

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D135540

Added: 
    

Modified: 
    libc/benchmarks/LibcBenchmark.h

Removed: 
    


################################################################################
diff  --git a/libc/benchmarks/LibcBenchmark.h b/libc/benchmarks/LibcBenchmark.h
index b459eb9729378..e7be9c386f795 100644
--- a/libc/benchmarks/LibcBenchmark.h
+++ b/libc/benchmarks/LibcBenchmark.h
@@ -272,8 +272,8 @@ template <typename T> class CircularArrayRef {
   using 
diff erence_type = ssize_t;
   using size_type = size_t;
 
-  class const_iterator
-      : public std::iterator<std::input_iterator_tag, T, ssize_t> {
+  class const_iterator {
+    using iterator_category = std::input_iterator_tag;
     llvm::ArrayRef<T> Array;
     size_t Index;
     size_t Offset;


        


More information about the libc-commits mailing list