#include <hash.hpp>
|
using | Func = std::function<void(const void*, size_t)> |
|
using | result_type = typename DefaultHashAlgorithm::result_type |
| Necessary to be accepted by hash_append.
|
|
|
const Func | func_ |
| Concrete hash algorithm implementation.
|
|
A simple struct that wraps a specific hash algorithm into a std::function. It is useful for passing a concrete HashAlgorithm implementation through into non-templated code.
- See also
- ExpressionCell::hash
◆ DelegatingHasher()
smats::DelegatingHasher::DelegatingHasher |
( |
Func | func | ) |
|
|
inlineexplicit |
Construct a new DelegatingHasher object.
- Precondition
- The function must be non-empty.
- Parameters
-
func | hash algorithm implementation |
◆ operator result_type()
Placeholder for the return type.
It is necessary for this struct to correctly implement the Hashable concept.
- Warning
- This function should never be called.
◆ operator()()
void smats::DelegatingHasher::operator() |
( |
const void * | data, |
|
|
size_t | length ) |
|
inlinenoexcept |
Delegation of the hash algorithm to func_ .
- Parameters
-
data | data to hash |
length | length of the data |
The documentation for this struct was generated from the following file: