Iros
Loading...
Searching...
No Matches
hasher.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/types/prelude.h
"
4
#include "
di/vocab/span/prelude.h
"
5
6
namespace
di::concepts
{
7
template
<
typename
T>
8
concept
Hasher
=
requires
(T& hasher,
vocab::Span<byte const>
data
) {
9
{ hasher.write(
data
) } ->
SameAs<void>
;
10
{ hasher.finish() } ->
SameAs<u64>
;
11
};
12
}
13
14
namespace
di
{
15
using
concepts::Hasher
;
16
}
di::vocab::Span
Definition
span_forward_declaration.h:10
di::concepts::Hasher
Definition
hasher.h:8
di::concepts::SameAs
Definition
core.h:114
prelude.h
prelude.h
di::concepts
Definition
any_storable.h:9
di
Definition
zstring_parser.h:9
di::data
constexpr auto data
Definition
data.h:51
libs
di
include
di
container
hash
hasher.h
Generated by
1.13.0