FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ FASTLED_DEFINE_POD_COMPARISON_OPERATOR

#define FASTLED_DEFINE_POD_COMPARISON_OPERATOR ( CLASS,
OP )
Value:
template <typename T, typename U> \
typename fl::enable_if< \
operator OP(const T &pod, const CLASS &obj) { \
return pod OP obj; \
} \
template <typename T> \
typename fl::enable_if<fl::is_pod<T>::value, bool>::type operator OP( \
const CLASS &obj, const T &pod) { \
return obj OP pod; \
}
static constexpr bool value
static constexpr bool value
Definition type_traits.h:54

Definition at line 490 of file type_traits.h.

490#define FASTLED_DEFINE_POD_COMPARISON_OPERATOR(CLASS, OP) \
491 template <typename T, typename U> \
492 typename fl::enable_if< \
493 fl::is_same<U, CLASS>::value && fl::is_pod<T>::value, bool>::type \
494 operator OP(const T &pod, const CLASS &obj) { \
495 return pod OP obj; \
496 } \
497 template <typename T> \
498 typename fl::enable_if<fl::is_pod<T>::value, bool>::type operator OP( \
499 const CLASS &obj, const T &pod) { \
500 return obj OP pod; \
501 }