Skip to content

Commit

Permalink
Refactor cartesian_product_adaptor and traits ordering
Browse files Browse the repository at this point in the history
Co-authored-by: Tristan Brindle <t.c.brindle@gmail.com>
  • Loading branch information
isaacy2012 and tcbrindle authored Jan 29, 2024
1 parent 39ead1d commit 91903c2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/flux/op/cartesian_product.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,17 @@ struct cartesian_product_adaptor
FLUX_NO_UNIQUE_ADDRESS std::tuple<Bases...> bases_;

public:
constexpr explicit cartesian_product_adaptor(decays_to<Bases> auto&&... bases)
: bases_(FLUX_FWD(bases)...)
{}

using flux_sequence_traits = cartesian_traits_base<
sizeof...(Bases),
cartesian_kind::product,
read_kind::tuple,
Bases...
>;
friend flux_sequence_traits::impl;

constexpr explicit cartesian_product_adaptor(decays_to<Bases> auto&&... bases)
: bases_(FLUX_FWD(bases)...)
{}


};

struct cartesian_product_fn {
Expand Down

0 comments on commit 91903c2

Please sign in to comment.