carl  24.04
Computer ARithmetic Library
hash.h
Go to the documentation of this file.
1 /**
2  * @file adaption_cln/hash.h
3  * @ingroup cln
4  * @author Sebastian Junges
5  * @author Florian Corzilius
6  *
7  */
8 
9 #pragma once
10 
11 #ifndef INCLUDED_FROM_NUMBERS_H
12 static_assert(false, "This file may only be included indirectly by numbers.h");
13 #endif
14 
15 #include "include.h"
16 
17 namespace std {
18 
19 template<>
20 struct hash<cln::cl_RA> {
21  std::size_t operator()(const cln::cl_RA& n) const {
22  return cln::equal_hashcode(n);
23  }
24 };
25 
26 template<>
27 struct hash<cln::cl_I> {
28  std::size_t operator()(const cln::cl_I& n) const {
29  return cln::equal_hashcode(n);
30  }
31 };
32 
33 }
std::size_t operator()(const cln::cl_RA &n) const
Definition: hash.h:21
std::size_t operator()(const cln::cl_I &n) const
Definition: hash.h:28