Skip to content
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

<numeric>: switch transform_reduce from direct list initialization to copy non-list initialization #4260

Merged
merged 7 commits into from
Jan 11, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stl/inc/execution
Original file line number Diff line number Diff line change
Expand Up @@ -4235,7 +4235,8 @@ struct _Static_partitioned_transform_reduce2 { // transformed reduction task sch
auto& _Transform_op = _This->_Transform_op;
auto _Chunk = _This->_Basis._Get_chunk(_Key);
auto _Next = _Chunk._First;
_Ty _Val{_Reduce_op(_Transform_op(*_Chunk._First), _Transform_op(*++_Next))};

_Ty _Val = _Reduce_op(_Transform_op(*_Chunk._First), _Transform_op(*++_Next));
strega-nil-ms marked this conversation as resolved.
Show resolved Hide resolved
StephanTLavavej marked this conversation as resolved.
Show resolved Hide resolved
while (++_Next != _Chunk._Last) {
_Val = _Reduce_op(_STD move(_Val), _Transform_op(*_Next));
}
Expand Down