Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Attributes | Static Protected Member Functions | Static Private Member Functions | List of all members
JLANG::JLOCAL::JComparisonAvailable< T, JType_t > Class Template Reference

Test availability of comparison operators of non-composite data types. More...

#include <JComparisonAvailable.hh>

Inheritance diagram for JLANG::JLOCAL::JComparisonAvailable< T, JType_t >:
JLANG::JTest

Static Public Attributes

static const bool has_eq = JTEST(test(getReference() == getReference()))
 true if operator== available; else false More...
 
static const bool has_ne = JTEST(test(getReference() != getReference()))
 true if operator!= available; else false More...
 
static const bool has_lt = JTEST(test(getReference() < getReference()))
 true if operator< available; else false More...
 
static const bool has_gt = JTEST(test(getReference() > getReference()))
 true if operator> available; else false More...
 
static const bool has_le = JTEST(test(getReference() <= getReference()))
 true if operator<= available; else false More...
 
static const bool has_ge = JTEST(test(getReference() >= getReference()))
 true if operator>= available; else false More...
 

Static Protected Member Functions

static JFalse test (...)
 default false More...
 

Static Private Member Functions

static JTrue test (const bool &)
 
static TgetReference ()
 

Detailed Description

template<class T, class JType_t = void>
class JLANG::JLOCAL::JComparisonAvailable< T, JType_t >

Test availability of comparison operators of non-composite data types.

Definition at line 40 of file JComparisonAvailable.hh.

Member Function Documentation

template<class T, class JType_t = void>
static JTrue JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::test ( const bool &  )
staticprivate
template<class T, class JType_t = void>
static T& JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::getReference ( )
staticprivate
static JFalse JLANG::JTest::test (   ...)
staticprotectedinherited

default false

Member Data Documentation

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_eq = JTEST(test(getReference() == getReference()))
static

true if operator== available; else false

Definition at line 50 of file JComparisonAvailable.hh.

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_ne = JTEST(test(getReference() != getReference()))
static

true if operator!= available; else false

Definition at line 51 of file JComparisonAvailable.hh.

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_lt = JTEST(test(getReference() < getReference()))
static

true if operator< available; else false

Definition at line 52 of file JComparisonAvailable.hh.

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_gt = JTEST(test(getReference() > getReference()))
static

true if operator> available; else false

Definition at line 53 of file JComparisonAvailable.hh.

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_le = JTEST(test(getReference() <= getReference()))
static

true if operator<= available; else false

Definition at line 54 of file JComparisonAvailable.hh.

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_ge = JTEST(test(getReference() >= getReference()))
static

true if operator>= available; else false

Definition at line 55 of file JComparisonAvailable.hh.


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