-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Vectorize remove_copy and unique_copy
#5355
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
cffb1e7
unique vectorization
AlexGuteniev a0b714d
no point
AlexGuteniev cccf693
Not unique problem
AlexGuteniev 54781db
Pointed out coverage
AlexGuteniev fa4ff20
Deduplicate
AlexGuteniev 407897e
Mention unique shuffling requirement
AlexGuteniev 4ca596b
whitespace
AlexGuteniev 54b2938
Merge branch 'main' into unique
StephanTLavavej a8b1f3b
Include `<type_traits>` for `conditional_t`.
StephanTLavavej 144163b
Direct-init `vector` instead of calling `resize()`.
StephanTLavavej a2bb838
Drop `std::`.
StephanTLavavej 5ea3d5a
fix types in pointer test
AlexGuteniev c53a430
simplify unique pointer test
AlexGuteniev b789701
`<memory>` is no longer used.
StephanTLavavej 2f51ed2
Drop repeated `TD` alias.
StephanTLavavej 8eb10d7
Value-init `ptr_val_array`.
StephanTLavavej 2e9f007
When `is_pointer_v<T>`, `dis(gen)` returns `int`.
StephanTLavavej e35ed5f
Mark `_Unique_fallback` as `noexcept`.
StephanTLavavej 8928190
Avoid abbreviated function templates.
StephanTLavavej 7a1de3d
Vectorize `remove_copy` and `unique_copy`
AlexGuteniev d37fde4
Merge remote-tracking branch 'upstream/main' into copycats
AlexGuteniev 4fd4a4c
simplify
AlexGuteniev c1f5899
Fix error
AlexGuteniev b9fd6a7
short circuit
AlexGuteniev ba3403b
benchmark
AlexGuteniev 5268f7e
merge error fix
AlexGuteniev 182a32c
Fix typo, consistently not using quotes
AlexGuteniev 780fd1a
Merge remote-tracking branch 'upstream/main' into copycats
AlexGuteniev 40c5371
Drop const in declarations.
StephanTLavavej 1d9e0bc
Comment grammar.
StephanTLavavej 66a7511
Move iterators when returning from `_Remove_copy_unchecked`.
StephanTLavavej 43006ad
Add const.
StephanTLavavej d017014
Add newline.
StephanTLavavej e33242e
Directly construct vectors from size.
StephanTLavavej 443e7d4
LKG_remove_copy should take InIt, OutIt.
StephanTLavavej 98868f5
`test_case_unique_copy` should be called with `out_actual`.
StephanTLavavej fff4056
Update `reserve` calls.
StephanTLavavej 51d9388
Test the rest of the return values of ranges::remove/remove_copy/uniq…
StephanTLavavej 640bb13
Add test coverage to find the bugs.
StephanTLavavej 62401d4
Fix bugs.
StephanTLavavej fbf0e0c
Merge branch 'main' into copycats
StephanTLavavej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.