userver
C++ Async Framework
Loading...
Searching...
No Matches
string_hash.hpp
1
#
pragma
once
2
3
#
include
<
cstdint
>
4
#
include
<
string_view
>
5
6
USERVER_NAMESPACE_BEGIN
7
8
namespace
storages
::
postgres
::utils {
9
10
std::size_t StrHash(
const
char
* str, std::size_t len);
11
inline
std::size_t StrHash(
const
std::string_view& str) {
12
return
StrHash(str.data(), str.size());
13
}
14
15
struct
StringViewHash
{
16
std::size_t operator()(
const
std::string_view& str)
const
{
17
return
StrHash(str);
18
}
19
};
20
21
}
// namespace storages::postgres::utils
22
23
USERVER_NAMESPACE_END
userver
storages
postgres
detail
string_hash.hpp
Generated on Wed May 15 2024 22:28:35 for userver by
Doxygen
1.10.0