The Sparta Modeling Framework
Loading...
Searching...
No Matches
MetaStruct::matches_any< T, Head, Tail... > Struct Template Reference

This templated struct takes a target type and another parameter pack of types and returns a nested boolean value of true, if the target type matches any one of the types in the parameter pack. More...

#include <MetaStructs.hpp>

Static Public Attributes

static constexpr bool value {std::is_same<T, Head>::value or matches_any<T, Tail...>::value}
 

Detailed Description

template<typename T, typename Head, typename... Tail>
struct MetaStruct::matches_any< T, Head, Tail... >

This templated struct takes a target type and another parameter pack of types and returns a nested boolean value of true, if the target type matches any one of the types in the parameter pack.

This is template specialization when there are one or more types left in the parameter pack.

Definition at line 185 of file MetaStructs.hpp.

Member Data Documentation

◆ value

template<typename T , typename Head , typename... Tail>
constexpr bool MetaStruct::matches_any< T, Head, Tail... >::value {std::is_same<T, Head>::value or matches_any<T, Tail...>::value}
staticconstexpr

Definition at line 186 of file MetaStructs.hpp.


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