8#ifndef SkTDynamicHash_DEFINED
9#define SkTDynamicHash_DEFINED
29 template <
typename Fn>
30 void foreach(Fn&& fn) {
31 fTable.
foreach([&](
T** entry) { fn(*entry); });
33 template <
typename Fn>
34 void foreach(Fn&& fn)
const {
35 fTable.
foreach([&](
T* entry) { fn(*entry); });
51 struct AdaptedTraits {
52 static const Key& GetKey(
T* entry) {
return Traits::GetKey(*entry); }
T * find(const Key &key) const
void remove(const Key &key)
size_t approxBytesUsed() const
void remove(const K &key)
T findOrNull(const K &key) const
size_t approxBytesUsed() const
static uint32_t Hash(uint32_t key)