b(_b) {
}
- Pair(Pair<A, B> * p) :
+ Pair(Pair<A, B> *p) :
a(p->a),
- b(p->b) {
- }
-
+ b(p->b) {
+ }
+
A getFirst() {
return a;
}
};
template<typename A, typename B>
-inline unsigned int pairHashFunction(Pair<A, B> * p) {
+inline unsigned int pairHashFunction(Pair<A, B> *p) {
return (p->getFirst() << 1) ^ p->getSecond();
}