From f681d7d5580e03caff91825d90e36d370cb803ef Mon Sep 17 00:00:00 2001 From: Konstantin Varlamov Date: Wed, 2 Feb 2022 12:53:07 -0800 Subject: [PATCH] [libc++][ranges][NFC] Add contiguous_iterator_tag to the synopsis It was previously implemented by commit [45d048c20](https://reviews.llvm.org/rG45d048c20440989df2b4e1be1f9343225e7741ab). Reviewed By: #libc, Quuxplusone, philnik, ldionne Differential Revision: https://reviews.llvm.org/D118751 --- libcxx/docs/Status/RangesPaper.csv | 4 +++- libcxx/include/iterator | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libcxx/docs/Status/RangesPaper.csv b/libcxx/docs/Status/RangesPaper.csv index e6fddab..3a263f2 100644 --- a/libcxx/docs/Status/RangesPaper.csv +++ b/libcxx/docs/Status/RangesPaper.csv @@ -67,7 +67,9 @@ Section,Description,Dependencies,Assignee,Complete `[common.alg.req] `_: pt. 4,"| permutable | mergeable | sortable",[iterator.concepts],Unassigned,Not started -`[std.iterator.tags] `_,,[iterator.traits],Unassigned,Not started +`[std.iterator.tags] `_,"`contiguous_iterator_tag `_ +| `iterator_concept specialization for pointers `_ +",[iterator.traits],Eric Fiselier,✅ `[range.iter.ops] `_,"| `ranges::advance `_ | `ranges::distance `_ | `ranges::next `_ diff --git a/libcxx/include/iterator b/libcxx/include/iterator index 29097a9..cf92bb7 100644 --- a/libcxx/include/iterator +++ b/libcxx/include/iterator @@ -165,6 +165,7 @@ struct output_iterator_tag {}; struct forward_iterator_tag : public input_iterator_tag {}; struct bidirectional_iterator_tag : public forward_iterator_tag {}; struct random_access_iterator_tag : public bidirectional_iterator_tag {}; +struct contiguous_iterator_tag : public random_access_iterator_tag {}; // 27.4.3, iterator operations template // constexpr in C++17 -- 2.7.4