Skip to content

P1899R3: views::stride - #2981

Merged
Stephan T. Lavavej (StephanTLavavej) merged 7 commits into
microsoft:mainfrom
JMazurkiewicz:stride_view
Aug 7, 2022
Merged

P1899R3: views::stride#2981
Stephan T. Lavavej (StephanTLavavej) merged 7 commits into
microsoft:mainfrom
JMazurkiewicz:stride_view

Conversation

@JMazurkiewicz

Copy link
Copy Markdown
Contributor

Implements P1899R3 - stride_view. Closes #2915.

Note(s)

@CaseyCarter Casey Carter (CaseyCarter) added ranges C++20/23 ranges cxx23 C++23 feature labels Aug 1, 2022
@JMazurkiewicz
Jakub Mazurkiewicz (JMazurkiewicz) marked this pull request as ready for review August 1, 2022 21:30

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great! Found a small number of issues, should be quick to address. 😸

Comment thread tests/std/tests/VSO_0157762_feature_test_macros/test.compile.pass.cpp Outdated
Comment thread tests/std/tests/VSO_0157762_feature_test_macros/test.compile.pass.cpp Outdated
Comment thread stl/debugger/STL.natvis
Comment thread stl/inc/ranges Outdated
Comment thread stl/inc/ranges Outdated
Comment thread stl/inc/ranges Outdated
Comment thread tests/std/tests/P1899R3_views_stride/test.cpp
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
* Rename `_Iterator_base` to `_Category_base`
* Swap `stride_view` constraints
* Fix `stride_view`'s iterator cross comparisons in tests (`ci <=> ci2` -> `i <=> ci2`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the LWG issue we need to file, LGTM!

Comment thread tests/std/tests/P1899R3_views_stride/test.cpp Outdated
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 7b5a482 into microsoft:main Aug 7, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for implementing this C++23 feature and helping the STL make great strides in conformance! 😹 😻 🚀

Igor Zhukov (fsb4000) pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cxx23 C++23 feature ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P1899R3 views::stride

4 participants