Skip to content

Instantly share code, notes, and snippets.

View catchouli's full-sized avatar
💭
type 2 invested entity

Caitlin Wilks catchouli

💭
type 2 invested entity
View GitHub Profile
@catchouli
catchouli / input
Last active August 29, 2015 14:12
libclang c++ draw tree
namespace coment
{
class Component
{
};
}
struct Stuff
: public coment::Component
#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);
}