-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement ranges::uninitialized_meow #1164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ranges::uninitialized_meow #1164
Conversation
|
I hade some time at hand and added |
e1decd0 to
6136e62
Compare
de904c7 to
7ee1c3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't dug into the tests yet, but there is plenty of product code feedback here. ;)
* `ranges::uninitialized_default_construct`, `ranges::uninitialized_default_construct_n` * `ranges::uninitialized_value_construct`, `ranges::uninitialized_value_construct_n` * `ranges::uninitialized_fill`, `ranges::uninitialized_fill_n` * `ranges::uninitialized_copy`, `ranges::uninitialized_copy_n` * `ranges::uninitialized_move_n`
miscco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started, will continue tomorrow
7ee1c3e to
c925844
Compare
|
@CaseyCarter Thanks a lot for the comments. I incorporated them and will have a look at additional test coverage soonTM |
|
This needs to be merged with recent changes to |
CaseyCarter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting close.
tests/std/tests/P0896R4_ranges_alg_uninitialized_copy_n/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0896R4_ranges_alg_uninitialized_value_construct/test.cpp
Show resolved
Hide resolved
tests/std/tests/P0896R4_ranges_alg_uninitialized_default_construct/test.cpp
Show resolved
Hide resolved
tests/std/tests/P0896R4_ranges_alg_uninitialized_value_construct/test.cpp
Outdated
Show resolved
Hide resolved
CaseyCarter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ready to merge sometime in 2023 when we can convince someone else to review it ;)
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I found some minor issues but @CaseyCarter should verify as my brain is running low on caffeine.
tests/std/tests/P0896R4_ranges_alg_uninitialized_copy_n/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0896R4_ranges_alg_uninitialized_move_n/test.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephan T. Lavavej <[email protected]>
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now except for one unresolved comment. @CaseyCarter feel free to move this to Ready To Merge.
tests/std/tests/P0896R4_ranges_alg_uninitialized_move_n/test.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Adam Bucior <[email protected]>
|
@miscco @CaseyCarter I applied @AdamBucior's suggested change after verifying that no other occurrences were affected (either in this PR or in the codebase). We have a new convention to remember! 😺 |
|
Thanks a lot, I thought I found all of those |
|
Thanks for constructing so many cat noises in uninitialized memory! 😺 😸 🐱 🐈 |
This ports the
uninitialized_default_construct{_n}algorithms to ranges.NOTE: This is based upon the
uninitialized_movePR as that PR is quite advanced and the merge conflicts by replicating bits of it didnt seem worth it. So it makes sense to only look at the final commit