Create a new HashState instance that wraps state.
Synopsis
Declared in <absl/hash/hash.h>
template<typename T>
requires std::is_base_of_v<hash_internal::HashStateBase<T>, T>
static
HashState
Create(T* state);
Description
All calls to combine() and combine_contiguous() on the new instance will be redirected to the original state object. The state object must outlive the HashState instance. T must be a subclass of HashStateBase<T> ‐ users should not define their own HashState types.
Return Value
A type‐erased HashState wrapping state.
Parameters
Name |
Description |
state |
The underlying hash state to wrap. |
Created with MrDocs