[tuple][hash] Hashing a tuple question

Hello, I'm looking for advice on hashing the tuples. For my task it seems to be enough to just take every element from the tuple and apply boost::hash_combine to each of the elements. However I am currently thinking of a clever way of writing it in a generic form. Has anyone done something like that and could give some hints? Cheers, Milosz

AMDG Milosz Marian Hulboj wrote:
I'm looking for advice on hashing the tuples. For my task it seems to be enough to just take every element from the tuple and apply boost::hash_combine to each of the elements. However I am currently thinking of a clever way of writing it in a generic form. Has anyone done something like that and could give some hints?
#include <iostream>
#include <cstddef>
#include
participants (2)
-
Milosz Marian Hulboj
-
Steven Watanabe