Jpp
17.1.0
the software that should make you happy
|
Template definition of auxiliary base class for data structures composed of multiple base classes with equality evaluations capabilities. More...
#include <JMultiEquals.hh>
Friends | |
bool | operator== (const JClass_t &first, const JClass_t &second) |
Equal operator. More... | |
bool | operator!= (const JClass_t &first, const JClass_t &second) |
Not equal operator. More... | |
Template definition of auxiliary base class for data structures composed of multiple base classes with equality evaluations capabilities.
The data type JType_t
should have the corresponding operator:
bool operator==(const JType_t& first, const JType_t& second);
This class uses in-class friend operators (see Barton-Nackman trick).
This class implements the operators == !=
.
Definition at line 32 of file JMultiEquals.hh.
|
friend |
Equal operator.
first | first object |
second | second object |
Definition at line 40 of file JMultiEquals.hh.
|
friend |
Not equal operator.
first | first object |
second | second object |
Definition at line 54 of file JMultiEquals.hh.