25 std::vector<HashValue> all_hashes;
33 std::cout <<
"==============================================================================\n";
34 std::cout <<
"Created " << all_hashes.size() <<
" hashes.\n";
35 std::sort(all_hashes.begin(), all_hashes.end());
37 auto dup = std::adjacent_find(all_hashes.begin(), all_hashes.end());
38 if(dup != all_hashes.end())
44 std::cout <<
"No duplicates found. Hooray!\n";
void test_floating(HashType htype, std::vector< HashValue > &all_hashes)
void test_integers(HashType htype, std::vector< HashValue > &all_hashes)
void test_tuple(HashType htype, std::vector< HashValue > &all_hashes)
Helper functions for testing.
std::string hash_to_string(const HashValue &hash)
Return a string representation of a hash.
void test_string(HashType htype, std::vector< HashValue > &all_hashes)
HashType
Type of hash to use.