Template Struct is_any

Inheritance Relationships

Base Type

  • public std::disjunction< std::is_same< T, Ts >... >

Struct Documentation

template<typename T, typename ...Ts>
struct is_any : public std::disjunction<std::is_same<T, Ts>...>

Similar to std::is_same, returns true if T is any of the types in the variadic expression.

Template Parameters
  • T – base type to check

  • Ts – list of types to compare against