Merge branch '1.4.x'
[cvc5.git] / src / util / bool.h
1 /********************* */
2 /*! \file bool.h
3 ** \verbatim
4 ** Original author: Morgan Deters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2014 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
11 **
12 ** \brief A hash function for Boolean
13 **
14 ** A hash function for Boolean.
15 **/
16
17 #include "cvc4_public.h"
18
19 #ifndef __CVC4__BOOL_H
20 #define __CVC4__BOOL_H
21
22 namespace CVC4 {
23
24 struct BoolHashFunction {
25 inline size_t operator()(bool b) const {
26 return b;
27 }
28 };/* struct BoolHashFunction */
29
30 }/* CVC4 namespace */
31
32 #endif /* __CVC4__BOOL_H */