Dynalib Utils
IComparable.h
Go to the documentation of this file.
1 //
2 // Created by Ken Kopelson on 21/10/17.
3 //
4 
5 #ifndef ICOMPARABLE_H
6 #define ICOMPARABLE_H
7 
8 template <class T> class IComparable {
9 public:
10  IComparable() = default;
11  virtual ~IComparable() = default;
12  virtual bool operator== (const T& other) const = 0;
13 };
14 
15 #endif //ICOMPARABLE_H
IComparable()=default
virtual bool operator==(const T &other) const =0
virtual ~IComparable()=default
Definition: IComparable.h:8