CBMC
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
17
size_t
hash_string
(
const
std::string &s);
18
size_t
hash_string
(
const
char
*s);
19
20
// NOLINTNEXTLINE(readability/identifiers)
21
struct
string_hash
22
{
23
size_t
operator()
(
const
std::string &s)
const
{
return
hash_string
(s); }
24
};
25
26
#endif
// CPROVER_UTIL_STRING_HASH_H
hash_string
size_t hash_string(const std::string &s)
Definition:
string_hash.cpp:14
string_hash
Definition:
string_hash.h:22
string_hash::operator()
size_t operator()(const std::string &s) const
Definition:
string_hash.h:23
src
util
string_hash.h
Generated by
1.9.1