CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
string_hash.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: string hashing
4
5Author: 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
17size_t hash_string(const std::string &s);
18size_t hash_string(const char *s);
19
20// NOLINTNEXTLINE(readability/identifiers)
22{
23 size_t operator()(const std::string &s) const { return hash_string(s); }
24};
25
26#endif // CPROVER_UTIL_STRING_HASH_H
size_t hash_string(const std::string &s)
size_t operator()(const std::string &s) const
Definition string_hash.h:23