[#absl-HashState-Create] = xref:absl.adoc[absl]::xref:absl/HashState.adoc[HashState]::Create :relfileprefix: ../../ :mrdocs: Create a new `HashState` instance that wraps `state`. == Synopsis Declared in `<absl/hash/hash.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> requires std::is_base_of_v<hash_internal::HashStateBase<T>, T> static xref:absl/HashState.adoc[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 [cols="1,4"] |=== | Name| Description | *state* | The underlying hash state to wrap. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#