[libc-commits] [PATCH] D135540: clean up std::iterator in LibcBenchmark.h

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Oct 23 03:34:04 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG12c62a67183e: clean up std::iterator in LibcBenchmark.h (authored by SchrodingerZhu, committed by gchatelet).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135540/new/

https://reviews.llvm.org/D135540

Files:
  libc/benchmarks/LibcBenchmark.h


Index: libc/benchmarks/LibcBenchmark.h
===================================================================
--- libc/benchmarks/LibcBenchmark.h
+++ libc/benchmarks/LibcBenchmark.h
@@ -272,8 +272,8 @@
   using difference_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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135540.469973.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221023/8c163c19/attachment.bin>


More information about the libc-commits mailing list