Skip to content

Commit

Permalink
An experiment to remove owning_view for zip_view::segments()
Browse files Browse the repository at this point in the history
  • Loading branch information
akukanov committed Aug 5, 2024
1 parent 2ea8baf commit e732a08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()`,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e732a08

Please sign in to comment.