Jpp  16.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Friends | List of all members
JLANG::JLOCAL::JNoequals< T > Class Template Reference

Template base class for data structures without equality capability. More...

#include <JComparisonAvailable.hh>

Friends

JNullType operator== (const T &first, const T &second)
 Equal operator. More...
 
JNullType operator!= (const T &first, const T &second)
 Not equal operator. More...
 

Detailed Description

template<class T>
class JLANG::JLOCAL::JNoequals< T >

Template base class for data structures without equality capability.

This class implements the operators == != .

Definition at line 96 of file JComparisonAvailable.hh.

Friends And Related Function Documentation

template<class T >
JNullType operator== ( const T first,
const T second 
)
friend

Equal operator.

Parameters
firstfirst object
secondsecond object
Returns
true if two objects are equal; else false

Definition at line 105 of file JComparisonAvailable.hh.

106  {
107  return JNullType();
108  }
Auxiliary class for no type definition.
Definition: JNullType.hh:19
template<class T >
JNullType operator!= ( const T first,
const T second 
)
friend

Not equal operator.

Parameters
firstfirst object
secondsecond object
Returns
true if two objects are not equal; else false

Definition at line 118 of file JComparisonAvailable.hh.

119  {
120  return JNullType();
121  }
Auxiliary class for no type definition.
Definition: JNullType.hh:19

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