Skip to content

Commit

Permalink
zip: unchecked version
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Mar 28, 2024
1 parent 5cc3399 commit 860acff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/utl/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,16 @@ auto czip(Containers&&... containers) {
detail::tuple_const_forward(std::forward<Containers&&>(containers)...)};
}

template <typename... Containers>
auto zip_unchecked(Containers&&... containers) {
return detail::zip_range{
detail::tuple_forward(std::forward<Containers&&>(containers)...)};
}

template <typename... Containers>
auto czip_unchecked(Containers&&... containers) {
return detail::zip_range{
detail::tuple_const_forward(std::forward<Containers&&>(containers)...)};
}

} // namespace utl

0 comments on commit 860acff

Please sign in to comment.