1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Morgan Deters, Mathias Preiner |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* A hash function for Boolean. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_public.h" |
17 |
|
|
18 |
|
#ifndef CVC5__BOOL_H |
19 |
|
#define CVC5__BOOL_H |
20 |
|
|
21 |
|
namespace cvc5 { |
22 |
|
|
23 |
|
struct BoolHashFunction { |
24 |
43429388 |
inline size_t operator()(bool b) const { |
25 |
43429388 |
return b; |
26 |
|
} |
27 |
|
};/* struct BoolHashFunction */ |
28 |
|
|
29 |
|
} // namespace cvc5 |
30 |
|
|
31 |
|
#endif /* CVC5__BOOL_H */ |