GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/util/bool.h Lines: 2 2 100.0 %
Date: 2021-03-23 Branches: 0 0 0.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file bool.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Morgan Deters, Mathias Preiner
6
 ** This file is part of the CVC4 project.
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.\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
41901514
  inline size_t operator()(bool b) const {
26
41901514
    return b;
27
  }
28
};/* struct BoolHashFunction */
29
30
}/* CVC4 namespace */
31
32
#endif /* CVC4__BOOL_H */