You need to hash
all data of any class object. And you need to overwrite it in
every class which you are designing to get a unique hash.
The C++ vector has already some
hash support.
If a hash isnt unique - it isnt a hash. There is no way around it.