OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavyai::IsAny< Values > Struct Template Reference

#include <define_enum_class.h>

Static Public Member Functions

template<typename T >
static bool check (T const value)
 

Detailed Description

template<auto... Values>
struct heavyai::IsAny< Values >

Definition at line 128 of file define_enum_class.h.

Member Function Documentation

template<auto... Values>
template<typename T >
static bool heavyai::IsAny< Values >::check ( T const  value)
inlinestatic

Definition at line 130 of file define_enum_class.h.

130  {
131  // Casting to T allows for safe comparison against out-of-range value.
132  // Example: IsAny<Color::Red, Color::Green, Color::Blue>::check(-1);
133  return ((static_cast<T>(Values) == value) || ...);
134  }

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