How do I compare two variables who do not have a predefined Type (i.e Templates).
If I just do a==b it only works for integers and not for strings. Is there any general method present for comparing templates.
> How do I compare two variables who do not have a predefined Type (i.e Templates).
a. The type involved must have an == operator,
or b. std::equal_to<> must have been specialized for the type
or c. the user must providede a binary predicate which can be used for comparing objects.