Skip to content

yet another C/C++ hash combine implementation. Header-only std::hash combine algorithm

License

Notifications You must be signed in to change notification settings

yalibs/yahashcombine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YA-HASHCOMBINE

yet another C/C++ hash combine implementation. Header-only std::hash combine algorithm

Example Usage

#include <hashcombine> // include the library
std::string foo = "foo";
std::string bar = "bar";

// You can combine hashes incrementally like so
auto foo_hash = std::hash<std::string>{}(foo);
auto foobar_hash = ya::hash_combine(foo_hash, bar);

// You can also just combine many at once like so
auto combined = ya::hash_combine(foo, bar);

About

yet another C/C++ hash combine implementation. Header-only std::hash combine algorithm

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published