Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Morgan Deters, Aina Niemetz 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 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::internal { 22 : : 23 : : struct BoolHashFunction { 24 : 20201800 : inline size_t operator()(bool b) const { 25 : 20201800 : return b; 26 : : } 27 : : };/* struct BoolHashFunction */ 28 : : 29 : : } // namespace cvc5::internal 30 : : 31 : : #endif /* CVC5__BOOL_H */