cuda::experimental::stf::tuple2tuple
Defined in include/cuda/experimental/__stf/utility/traits.cuh
-
template<typename Tuple, typename Fun>
constexpr auto cuda::experimental::stf::tuple2tuple(const Tuple &t, Fun &&f) Converts each element in
t
to a new value by callingf
, then returns a tuple collecting the values thus obtained.- Template Parameters
Tuple – Type of the tuple to convert
Fun – Type of mapping function to apply
- Parameters
t – Object to convert, must support
std::apply
f – function to convert each element of the tuple, must take a single parameter
- Returns
constexpr auto The tuple resulting from the mapping