Regardless of the type argument you specify for the type parameter Dominio, you must overload operator==for that type.
Suppose you write this:
DicListas<A,B> obj;
obj.Belongs(A());
then you should overload operator==for a type Alike:
class A
{
public:
bool operator == (const A &a) const
{
//compare this and a.. and return true or false
}
};
, public, -, const, const A.
, -, operator== , :
bool operator == (const A &left, const A & right)
{
//compare left and right.. and return true or false
}
.