0

The type_traits library offers the possibility to check if two type are the same with is_same.

How can one generalize to an arbitrary long list of types? Something declared as

template <class... U>
struct is_same_many;

with a field value such that value = true if all Us are the same, and false otherwise.

francesco
  • 7,189
  • 7
  • 22
  • 49

0 Answers0