Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An experiment to remove owning_view for zip_view::segments()
Browse files Browse the repository at this point in the history
akukanov committed Aug 5, 2024
1 parent 5872084 commit 84aa166
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -221,7 +221,7 @@ class zip_view : public stdrng::view_interface<zip_view<Rs...>>
increment_local_idx(segment_ids, local_idx, size);
}

return stdrng::owning_view(std::move(segment_views));
return segment_views;
}

// Return a range corresponding to each segment in `segments()`,
@@ -257,7 +257,7 @@ class zip_view : public stdrng::view_interface<zip_view<Rs...>>
increment_local_idx(segment_ids, local_idx, size);
}

return stdrng::owning_view(std::move(segment_views));
return segment_views;
}

auto

0 comments on commit 84aa166

Please sign in to comment.