AIToolbox
A library that offers tools for AI problem solving.
|
This struct allows to match between two tuples types. More...
#include <AIToolbox/Impl/FunctionMatching.hpp>
Public Types | |
using | type = IdPack< IDs... > |
Static Public Attributes | |
static constexpr bool | match = false |
This struct allows to match between two tuples types.
If the first tuple is an ordered subset of the second, match will be true and the type will be an IdPack with the indeces of the second tuple that match the first.
Otherwise, match will be false and type will be void.
You can use this by simply calling
Matcher<0, smaller_tuple_type, bigger_tuple_type>::match Matcher<0, smaller_tuple_type, bigger_tuple_type>::type
using AIToolbox::Impl::Matcher< N, T, U, IDs >::type = IdPack<IDs...> |
|
staticconstexpr |