0

I'd like to have the following helper:

is_duplicate< std::tuple<int, double, char, double, float > >::value

where value is:

  • true when there are duplicates.
  • false when there aren't duplicates.

I don't know how to recursively iterate the tuple to perform the check. I don't know that strategies exists to solve this problem.

Can someone explain me how to create this helper?

Yakk - Adam Nevraumont
  • 262,606
  • 27
  • 330
  • 524
Juan Solo
  • 359
  • 1
  • 5
  • 17

0 Answers0