CBMC
Loading...
Searching...
No Matches
string_hash.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: string hashing
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_UTIL_STRING_HASH_H
13
#define CPROVER_UTIL_STRING_HASH_H
14
15
#include <string>
16
#include <string_view>
17
18
std::size_t
hash_string
(std::string_view);
19
std::size_t
hash_string
(
const
char
*s, std::size_t
len
);
20
21
// NOLINTNEXTLINE(readability/identifiers)
22
struct
string_hash
23
{
24
std::size_t
operator()
(
const
std::string &s)
const
25
{
26
return
hash_string
(s);
27
}
28
};
29
30
#endif
// CPROVER_UTIL_STRING_HASH_H
ait
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition
ai.h:566
hash_string
std::size_t hash_string(std::string_view)
Definition
string_hash.cpp:14
string_hash
Definition
string_hash.h:23
string_hash::operator()
std::size_t operator()(const std::string &s) const
Definition
string_hash.h:24
src
util
string_hash.h
Generated by
1.9.8