| 714 | |
| 715 | template <int N, class X> |
| 716 | CUTE_HOST_DEVICE constexpr |
| 717 | auto |
| 718 | repeat(X const& x) |
| 719 | { |
| 720 | if constexpr (N == 1) { |
| 721 | return x; |
| 722 | } else { |
| 723 | return detail::construct(0, x, seq<>{}, make_seq<N>{}, seq<>{}); |
| 724 | } |
| 725 | |
| 726 | CUTE_GCC_UNREACHABLE; |
| 727 | } |
| 728 | |
| 729 | // |
| 730 | // Make a tuple of Xs the same profile as tuple T |
nothing calls this directly
no test coverage detected