#include <tuple>
Go to the source code of this file.
|
template<typename _Tuple , typename _Fn , size_t... _Idx> |
void | flecsi::util::tuple_visitor_impl (_Tuple &&t, _Fn &&f, std::index_sequence< _Idx... >) |
|
template<typename _Tuple , typename _Fn > |
void | flecsi::util::tuple_visitor (_Tuple &&t, _Fn &&f) |
|
template<typename _Tuple , typename _Fn > |
void | flecsi::util::tuple_visitor (_Fn &&f) |
|
◆ tuple_visitor() [1/2]
template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor |
( |
_Tuple && |
t, |
|
|
_Fn && |
f |
|
) |
| |
Apply the given callable object to each element of the given tuple.
- Template Parameters
-
_Tuple | The tuple type. |
_Fn | Callable object type. |
- Parameters
-
f | Callable object. |
t | Tuple. |
- Note
- This is written in the style of the standard library so that it can be used in a proposal to add this to the standard.
◆ tuple_visitor() [2/2]
template<typename _Tuple , typename _Fn >
void flecsi::util::tuple_visitor |
( |
_Fn && |
f | ) |
|
Apply the given callable object to each element of the given tuple type.
- Template Parameters
-
_Tuple | The tuple type. This type must be default constructible, which implies that each element type must be default constructible. |
_Fn | Callable object type. |
- Parameters
-
- Note
- This is written in the style of the standard library so that it can be used in a proposal to add this to the standard.