I am trying to create a class with type parameter, and I want to assign the parameter only if it overrides the "==" operator.
something like this:
template <class T where T is override the operator "==" >
class Dictionary {
private:
.
.
.
public:
.
.
.
};
The idea is to make the compiler to not allow any class that is not overrides the specific operator, as a T type.
I could't find the answer here: How to check whether operator== exists?
Thanks for helpers!