This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace coment | |
{ | |
class Component | |
{ | |
}; | |
} | |
struct Stuff | |
: public coment::Component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <functional> | |
/** Combine hash in seed with hash of t1 */ | |
template <typename T1> | |
void hash_combine(size_t& seed, const T1& t1) | |
{ | |
// Combine hashes | |
seed ^= std::hash<T1>()(t1) + 0x9e3779b9 + (seed << 6) + (seed >> 2); | |
} |
NewerOlder