AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::Impl::Matcher< N, T, U, IDs > Struct Template Reference

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
 

Detailed Description

template<size_t N, typename T, typename U, size_t... IDs>
struct AIToolbox::Impl::Matcher< N, T, U, IDs >

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

Member Typedef Documentation

◆ type

template<size_t N, typename T , typename U , size_t... IDs>
using AIToolbox::Impl::Matcher< N, T, U, IDs >::type = IdPack<IDs...>

Member Data Documentation

◆ match

template<size_t N, typename T , typename U , size_t... IDs>
constexpr bool AIToolbox::Impl::Matcher< N, T, U, IDs >::match = false
staticconstexpr

The documentation for this struct was generated from the following file: