aboutsummaryrefslogtreecommitdiff
path: root/dep/include/g3dlite/G3D/EqualsTrait.h
blob: 349cb5088fba7e85f10ef3fb6da57fe3b625dea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
  @file EqualsTrait.h

  @maintainer Morgan McGuire, http://graphics.cs.williams.edu
  @created 2008-10-01
  @edited  2008-10-01
  Copyright 2000-2009, Morgan McGuire.
  All rights reserved.
 */

#ifndef G3D_EQUALSTRAIT_H
#define G3D_EQUALSTRAIT_H

#include "G3D/platform.h"

/** Default implementation of EqualsTrait.
    @see G3D::Table for specialization requirements.
*/
template<typename Key> struct EqualsTrait {
    static bool equals(const Key& a, const Key& b) {
        return a == b;
    }
};

#endif