Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::HasOperator< S, T > Struct Template Reference

Allows compile-time check for the presence of various operators. More...

#include <class_helpers.h>

Static Public Attributes

static constexpr bool eq = decltype(eqTest<S, T>(0U))::value
static constexpr bool ne = decltype(neTest<S, T>(0U))::value
static constexpr bool lt = decltype(ltTest<S, T>(0U))::value
static constexpr bool le = decltype(leTest<S, T>(0U))::value
static constexpr bool gt = decltype(gtTest<S, T>(0U))::value
static constexpr bool ge = decltype(geTest<S, T>(0U))::value
static constexpr bool mul = decltype(mulTest<S, T>(0U))::value
static constexpr bool inc = decltype(incTest<S>(0U))::value
static constexpr bool dec = decltype(decTest<S>(0U))::value
static constexpr bool mod = decltype(modTest<S, T>(0U))::value

Detailed Description

template<typename S, typename T = S>
struct sen::HasOperator< S, T >

Allows compile-time check for the presence of various operators.

Member Data Documentation

◆ eq

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::eq = decltype(eqTest<S, T>(0U))::value
staticconstexpr

◆ ne

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::ne = decltype(neTest<S, T>(0U))::value
staticconstexpr

◆ lt

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::lt = decltype(ltTest<S, T>(0U))::value
staticconstexpr

◆ le

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::le = decltype(leTest<S, T>(0U))::value
staticconstexpr

◆ gt

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::gt = decltype(gtTest<S, T>(0U))::value
staticconstexpr

◆ ge

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::ge = decltype(geTest<S, T>(0U))::value
staticconstexpr

◆ mul

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::mul = decltype(mulTest<S, T>(0U))::value
staticconstexpr

◆ inc

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::inc = decltype(incTest<S>(0U))::value
staticconstexpr

◆ dec

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::dec = decltype(decTest<S>(0U))::value
staticconstexpr

◆ mod

template<typename S, typename T = S>
bool sen::HasOperator< S, T >::mod = decltype(modTest<S, T>(0U))::value
staticconstexpr

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