Blender V5.3
blender::DefaultHash< blender::detail::UStringEntry > Struct Reference

#include <BLI_ustring.hh>

Public Member Functions

uint64_t operator() (const blender::detail::UStringEntry &value) const
constexpr uint64_t operator() (const StringRef value) const

Detailed Description

Like DefaultHash<UString> above, but for the table entries themselves: uses the cached hash for an existing entry, and supports hashing a StringRef directly so the global string table can be queried without needing to allocate a blender::detail::UStringEntry first.

Definition at line 151 of file BLI_ustring.hh.

Member Function Documentation

◆ operator()() [1/2]

Definition at line 152 of file BLI_ustring.hh.

References blender::detail::UStringEntry::hash.

◆ operator()() [2/2]

uint64_t blender::DefaultHash< blender::detail::UStringEntry >::operator() ( const StringRef value) const
inlineconstexpr

Definition at line 157 of file BLI_ustring.hh.

References blender::get_default_hash().


The documentation for this struct was generated from the following file: