Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
pairhash.h
1
#pragma once
2
3
#include <functional>
4
#include <glm/glm.hpp>
5
#include <utility>
6
7
namespace
std {
8
template
<
typename
A,
typename
B>
9
struct
hash<pair<A, B>> {
10
size_t
operator()(
const
pair<A, B>& arg)
const
{
11
std::hash<A> hashA;
12
std::hash<B> hashB;
13
return
hashA(arg.first) ^ (hashB(arg.second) * 31);
14
}
15
};
16
}
src
utils
pairhash.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6