cuda::experimental::stf::array_tuple#

template<typename T, size_t n>
using cuda::experimental::stf::array_tuple = decltype(to_tuple(::std::array<T, n>{}))#

Array-like tuple with a single element type repeated n times.

The array_tuple template generates a std::tuple with a single type T repeated n times. This can be used to create a tuple with consistent types and a fixed size.

Example
using my_tuple = array_tuple<int, 5>; // Results in std::tuple<int, int, int, int, int>

Note

The specialization array_tuple<T, 0> will result in an empty tuple (std::tuple<>).

Template Parameters:
  • T – The type of the elements that the tuple will contain.

  • n – The number of elements that the tuple will contain.