| Index: src/core/SkTHash.h
|
| diff --git a/src/core/SkTHash.h b/src/core/SkTHash.h
|
| index c4bd3b6161c2dbbbb6beeae1da12f1f869813448..3637c53c4662d2863877c3e1261d9362cff176cc 100644
|
| --- a/src/core/SkTHash.h
|
| +++ b/src/core/SkTHash.h
|
| @@ -237,6 +237,12 @@ public:
|
| // This pointer remains valid until the next call to add().
|
| const T* find(const T& item) const { return fTable.find(item); }
|
|
|
| + // Call fn on every item in the set. You may not mutate anything.
|
| + template <typename Fn> // f(T), f(const T&)
|
| + void foreach (Fn&& fn) const {
|
| + fTable.foreach (fn);
|
| + }
|
| +
|
| private:
|
| struct Traits {
|
| static const T& GetKey(const T& item) { return item; }
|
|
|