This is a class that mimics most of std::tuple's interface, except that it is usable in CUDA kernels and admits some arithmetic operator overloads.
More...
#include <tuple.hpp>
|
| using | base_type = detail::tuple_impl<std::index_sequence_for<T...>, T...> |
| |
|
| MFEM_HOST_DEVICE constexpr | tuple ()=default |
| | Default constructor.
|
| |
| template<typename... U, typename = detail::enable_elementwise_t<tuple, U...>> |
| MFEM_HOST_DEVICE constexpr | tuple (U &&... args) |
| | Construct tuple from values.
|
| |
| MFEM_HOST_DEVICE constexpr | tuple (const tuple &)=default |
| | Copy constructor.
|
| |
| MFEM_HOST_DEVICE constexpr | tuple (tuple &&)=default |
| | Move constructor.
|
| |
| MFEM_HOST_DEVICE constexpr tuple & | operator= (const tuple &)=default |
| | Copy assignment operator.
|
| |
| MFEM_HOST_DEVICE constexpr tuple & | operator= (tuple &&)=default |
| | Move assignment operator.
|
| |
template<typename... T>
struct mfem::future::tuple< T >
This is a class that mimics most of std::tuple's interface, except that it is usable in CUDA kernels and admits some arithmetic operator overloads.
- Template Parameters
-
| T | the types stored in the tuple |
See https://en.cppreference.com/w/cpp/utility/tuple for more information about std::tuple.
Definition at line 149 of file tuple.hpp.
◆ base_type
template<typename... T>
| using mfem::future::tuple< T >::base_type = detail::tuple_impl<std::index_sequence_for<T...>, T...> |
◆ tuple() [1/4]
◆ tuple() [2/4]
template<typename... T>
template<typename... U, typename = detail::enable_elementwise_t<tuple, U...>>
Construct tuple from values.
- Parameters
-
- Note
- this constructor is deliberately not explicit, so that the copy-list-initialization forms that worked when
tuple was an aggregate ("tuple<A,B> t = {a,b};", "return {a,b};", passing "{a,b}" to a function) keep working.
Definition at line 169 of file tuple.hpp.
◆ tuple() [3/4]
◆ tuple() [4/4]
◆ operator=() [1/2]
Copy assignment operator.
◆ operator=() [2/2]
Move assignment operator.
The documentation for this struct was generated from the following file: