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
ntimes.The
Examplearray_tupletemplate generates astd::tuplewith a single typeTrepeatedntimes. This can be used to create a tuple with consistent types and a fixed size.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.