10 template<
int Index,
class Search,
class First,
class... Types>
13 typedef typename get_internal<Index + 1, Search, Types...>::type type;
14 static const int index = Index;
17 template<
int Index,
class Search,
class... Types>
21 static const int index = Index;
25 template<
class T,
class... Types>
26 T & get(std::tuple<Types...> & tuple)
31 template<
class T,
class... Types>
32 const T & get(
const std::tuple<Types...> & tuple)
34 return std::get<Detail::get_internal<0, T, Types...>::type::index>(tuple);
42 template<
int N,
int... Is>
48 template<
typename T,
typename F,
int... Is>
51 auto l = { (f(std::get<Is>(t)), 0)... };
62 template<
typename... Ts,
typename F>
Contains all Cogs related functionality.
void for_each_in_tuple(std::tuple< Ts... > &t, F f)
Utility method for executing the given function over all members in a tuple.