Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Friends | List of all members
JLANG::JLANG_LOCAL::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::JLANG_LOCAL::JNoequals< T >

Template base class for data structures without equality capability.

This class implements the operators == != .

Definition at line 117 of file JComparisonAvailable.hh.

Friends And Related Function Documentation

◆ operator==

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 126 of file JComparisonAvailable.hh.

127  {
128  return JNullType();
129  }
Auxiliary class for no type definition.
Definition: JNullType.hh:19

◆ operator!=

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 139 of file JComparisonAvailable.hh.

140  {
141  return JNullType();
142  }

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