cuda::experimental::stf::tuple2tuple
#
-
template<typename Tuple, typename Fun>
constexpr auto cuda::experimental::stf::tuple2tuple(
)# 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