Dynalib Utils
IHashable.h
Go to the documentation of this file.
1 //
2 // Created by Ken Kopelson on 21/10/17.
3 //
4 
5 #if !defined IHASHABLE_H
6 #define IHASHABLE_H
7 
8 #include "IComparable.h"
9 
10 template <class T> class IHashable : public IComparable<T> {
11 public:
12  IHashable() = default;
13  virtual ~IHashable() = default;
14  virtual int hashCode() const = 0;
15 };
16 
17 #endif //IHASHABLE_H
Definition: IHashable.h:10
virtual int hashCode() const =0
IHashable()=default
Definition: IComparable.h:8
virtual ~IHashable()=default