MCPcopy Create free account
hub / github.com/BowenFu/hspp / zipTupleWithImpl

Function zipTupleWithImpl

develop/include/typeclass.h:695–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693{
694template <size_t... I, typename Func, typename Tuple1, typename Tuple2>
695constexpr static auto zipTupleWithImpl(Func func, Tuple1&& lhs, Tuple2&& rhs, std::index_sequence<I...>)
696{
697 static_assert(std::tuple_size_v<std::decay_t<Tuple1>> == sizeof...(I));
698 static_assert(std::tuple_size_v<std::decay_t<Tuple2>> == sizeof...(I));
699 return std::make_tuple((func | std::get<I>(std::forward<Tuple1>(lhs)) | std::get<I>(std::forward<Tuple2>(rhs)))...);
700}
701}
702
703template <typename Func, typename Tuple1, typename Tuple2>

Callers 1

zipTupleWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected