Create a new HashState instance that wraps state.
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);
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.
A type-erased HashState wrapping state.
| Name | Description |
|---|---|
| state | The underlying hash state to wrap. |