Skip to content

Repairing counted_iterator - #1939

Merged
Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
cpplearner:patch-1
Jun 29, 2021
Merged

Repairing counted_iterator#1939
Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
cpplearner:patch-1

Conversation

@cpplearner

Copy link
Copy Markdown
Contributor

This implements the counted_iterator part of WG21-P2259.

Partially addresses #1684.

@cpplearner
S. B. Tam (cpplearner) requested a review from a team as a code owner May 29, 2021 00:58
@CaseyCarter Casey Carter (CaseyCarter) added the LWG Library Working Group issue label Jun 1, 2021

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.

We also need a P2259R1 banner under "_HAS_CXX20 directly controls" in <yvals_core.h> with a partial completion indicator:

// P2259R1 Repairing Input Range Adaptors And counted_iterator
//     (partially implemented)

Comment thread tests/std/tests/P0896R4_counted_iterator/test.cpp Outdated
Comment thread tests/std/tests/P0896R4_counted_iterator/test.cpp Outdated
Comment thread tests/std/tests/P0896R4_counted_iterator/test.cpp
@CaseyCarter Casey Carter (CaseyCarter) removed their assignment Jun 21, 2021

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.

Looks good - I'll validate and push changes for const style and difference_type test coverage.

Comment thread tests/std/tests/P0896R4_counted_iterator/test.cpp Outdated
Comment thread tests/std/tests/P0896R4_counted_iterator/test.cpp
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 1bfe5b1 into microsoft:main Jun 29, 2021
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for implementing the Standard's usability fixes for ranges! 😻 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LWG Library Working Group issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants