cuda::zip_function#
-
template<class _Fn>
class zip_function# Adaptor that transforms a functor taking arguments of types
Ts… into one accepting atuple<Ts...>- Template Parameters:
_Fn – The functor to wrap
Public Functions
-
template<class _Fn2 = _Fn, ::cuda::std::enable_if_t<::cuda::std::default_initializable<_Fn2>, int> = 0>
inline constexpr zip_function( default construct a zip_function
- inline constexpr zip_function(
- const _Fn &__fun
construct a zip_function from a functor
- inline constexpr zip_function(
- _Fn &&__fun
construct a zip_function from a functor
-
template<class _Tuple, ::cuda::std::enable_if_t<(::cuda::std::__can_apply<const _Fn&, _Tuple>), int> = 0>
inline constexpr decltype(auto) operator()( - _Tuple &&__tuple
Applies a tuple to the stored functor.
- Parameters:
__tuple – The tuple of arguments to be passed
-
template<class _Tuple, ::cuda::std::enable_if_t<(::cuda::std::__can_apply<_Fn&, _Tuple>), int> = 0>
inline constexpr decltype(auto) operator()( - _Tuple &&__tuple
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.