![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
basic tuple implementation More...
#include <Tuple.hpp>
Public Types | |
| using | Base = detail::TupleImpl<std::make_index_sequence<sizeof...(T_Args)>, T_Args...> |
| using | StdTuple = std::tuple<T_Args...> |
Public Member Functions | |
| constexpr | Tuple ()=default |
| template<typename... T_CArgs> | |
| constexpr | Tuple (T_CArgs &&... us) noexcept((std::is_nothrow_constructible_v< T_Args, T_CArgs && > &&...)) |
| template<size_t I> | |
| constexpr auto const & | get () const |
| get element by index | |
| template<size_t I> | |
| constexpr auto & | get () |
| get element by index | |
basic tuple implementation
This class is trivially copyable if all members are trivially copyable too and can therefore be used for a collection to pass arguments into kernels. You should use
| using alpaka::Tuple< T_Args >::Base = detail::TupleImpl<std::make_index_sequence<sizeof...(T_Args)>, T_Args...> |
| using alpaka::Tuple< T_Args >::StdTuple = std::tuple<T_Args...> |
|
inlineconstexprnoexcept |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |