How can I make a class template that returns whether any of its variadic types are equal to the first type. I want to be able to do this:
is_same<T, A, B, C>::value; // true if T is one of A, B or C
And if T
is equal to any one of those types, its static value
member will be true
, otherwise false
. How can I do this?