| 497 | // Wrap non-tuples into rank-1 tuples or forward |
| 498 | template <class T> |
| 499 | CUTE_HOST_DEVICE constexpr |
| 500 | auto |
| 501 | wrap(T const& t) |
| 502 | { |
| 503 | if constexpr (is_tuple<T>::value) { |
| 504 | return t; |
| 505 | } else { |
| 506 | return cute::make_tuple(t); |
| 507 | } |
| 508 | |
| 509 | CUTE_GCC_UNREACHABLE; |
| 510 | } |
| 511 | |
| 512 | // Unwrap rank-1 tuples until we're left with a rank>1 tuple or a non-tuple |
| 513 | template <class T> |
no outgoing calls
no test coverage detected