Utopia 2
Framework for studying models of complex & adaptive systems.
|
Apply the metafunction 'Metafunc' to a tuplelike type 'Tuplelike'. More...
#include <metaprogramming.hh>
Public Types | |
using | type = typename _Metaprogramming_helpers::apply_impl< Metafunc, std::decay_t< Tuplelike >, std::make_index_sequence< std::tuple_size_v< std::decay_t< Tuplelike > > > >::type |
Apply the metafunction 'Metafunc' to a tuplelike type 'Tuplelike'.
Metafunc | A metafunction accepting as many template args as 'Tuplelike' is big. |
Tuplelike | A tuplelike object which can be exploded into a parameter pack with std::tuple_element |
using Utopia::Utils::apply< Metafunc, Tuplelike >::type = typename _Metaprogramming_helpers::apply_impl< Metafunc, std::decay_t<Tuplelike>, std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuplelike> >> >::type |