diff --git a/glm/gtx/hash.hpp b/glm/gtx/hash.hpp index fad46236..f029b751 100644 --- a/glm/gtx/hash.hpp +++ b/glm/gtx/hash.hpp @@ -64,88 +64,88 @@ namespace std { - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tvec1 &v) const; + GLM_FUNC_DECL size_t operator()(const glm::tvec1 &v) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tvec2 &v) const; + GLM_FUNC_DECL size_t operator()(const glm::tvec2 &v) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tvec3 &v) const; + GLM_FUNC_DECL size_t operator()(const glm::tvec3 &v) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tvec4 &v) const; + GLM_FUNC_DECL size_t operator()(const glm::tvec4 &v) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tquat &q) const; + GLM_FUNC_DECL size_t operator()(const glm::tquat &q) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat2x2 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat2x2 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat2x3 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat2x3 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat2x4 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat2x4 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat3x2 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat3x2 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat3x3 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat3x3 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat3x4 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat3x4 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat4x2 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat4x2 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat4x3 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat4x3 &m) const; }; - template - struct hash> + template + struct hash> { - GLM_FUNC_DECL size_t operator()(const glm::tmat4x4 &m) const; + GLM_FUNC_DECL size_t operator()(const glm::tmat4x4 &m) const; }; } // namespace std diff --git a/glm/gtx/hash.inl b/glm/gtx/hash.inl index 7dc92fb0..2b77cccc 100644 --- a/glm/gtx/hash.inl +++ b/glm/gtx/hash.inl @@ -51,17 +51,17 @@ namespace detail namespace std { - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tvec1 &v) const + hash>::operator()(const glm::tvec1 &v) const { hash hasher; return hasher(v.x); } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tvec2 &v) const + hash>::operator()(const glm::tvec2 &v) const { size_t seed = 0; hash hasher; @@ -70,9 +70,9 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tvec3 &v) const + hash>::operator()(const glm::tvec3 &v) const { size_t seed = 0; hash hasher; @@ -82,9 +82,9 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tvec4 &v) const + hash>::operator()(const glm::tvec4 &v) const { size_t seed = 0; hash hasher; @@ -95,9 +95,9 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tquat &q) const + hash>::operator()(const glm::tquat &q) const { size_t seed = 0; hash hasher; @@ -108,81 +108,81 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat2x2 &m) const + hash>::operator()(const glm::tmat2x2 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat2x3 &m) const + hash>::operator()(const glm::tmat2x3 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat2x4 &m) const + hash>::operator()(const glm::tmat2x4 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat3x2 &m) const + hash>::operator()(const glm::tmat3x2 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat3x3 &m) const + hash>::operator()(const glm::tmat3x3 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat3x4 &m) const + hash>::operator()(const glm::tmat3x4 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2])); return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat4x2 &m) const + hash>::operator()(const glm::tmat4x2 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2])); @@ -190,12 +190,12 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat4x3 &m) const + hash>::operator()(const glm::tmat4x3 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2])); @@ -203,12 +203,12 @@ namespace std return seed; } - template + template GLM_FUNC_QUALIFIER size_t - hash>::operator()(const glm::tmat4x4 &m) const + hash>::operator()(const glm::tmat4x4 &m) const { size_t seed = 0; - hash> hasher; + hash> hasher; glm::detail::hash_combine(seed, hasher(m[0])); glm::detail::hash_combine(seed, hasher(m[1])); glm::detail::hash_combine(seed, hasher(m[2]));