utility functions More...
utility functions
Definition in file thread_util.hpp.
#include <tuple>
#include <utility>
Go to the source code of this file.
Data Structures | |
struct | riot::detail::int_list< Is > |
A list of integers (wraps a long... More... | |
struct | riot::detail::il_indices< Max, Pos, Indices > |
Creates indices from Pos to Max . More... | |
struct | riot::detail::il_indices< Pos, Pos, int_list< Is... > > |
End of recursion, Pos reached Max . More... | |
struct | riot::detail::il_indices< Max, Pos, int_list< Is... > > |
Recursion step. More... | |
Functions | |
template<long To, long From = 0> | |
il_indices< To, From >::type | riot::detail::get_indices () |
Function to create a list of indices from From to To . | |
template<class F , long... Is, class Tuple > | |
auto | riot::detail::apply_args (F &f, detail::int_list< Is... >, Tuple &&tup) -> decltype(f(std::get< Is >(tup)...)) |
Apply arguments in a tuple to function. | |
template<class F , class Tuple , class... Ts> | |
auto | riot::detail::apply_args_prefixed (F &f, detail::int_list<>, Tuple &, Ts &&... args) -> decltype(f(std::forward< Ts >(args)...)) |
Prefix the argument tuple with additional arguments. More... | |
template<class F , long... Is, class Tuple , class... Ts> | |
auto | riot::detail::apply_args_prefixed (F &f, detail::int_list< Is... >, Tuple &tup, Ts &&... args) -> decltype(f(std::forward< Ts >(args)..., std::get< Is >(tup)...)) |
Prefix the argument tuple with additional arguments. More... | |
template<class F , long... Is, class Tuple , class... Ts> | |
auto | riot::detail::apply_args_suffxied (F &f, detail::int_list< Is... >, Tuple &tup, Ts &&... args) -> decltype(f(std::get< Is >(tup)..., std::forward< Ts >(args)...)) |
Suffix the tuple with additional arguments. | |
|
inline |
Prefix the argument tuple with additional arguments.
In this case the tuple is contains arguments.
Definition at line 97 of file thread_util.hpp.
|
inline |
Prefix the argument tuple with additional arguments.
In this case the tuple is empty.
Definition at line 87 of file thread_util.hpp.