/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkTDynamicHash_DEFINED #define SkTDynamicHash_DEFINED // This is now a simple API wrapper around THashTable<T*>; // please just use SkTHash{Map,Set,Table} directly for new code. #include "src/core/SkTHash.h" // Traits requires: // static const Key& GetKey(const T&) { ... } // static uint32_t Hash(const Key&) { ... } // We'll look on T for these by default, or you can pass a custom Traits type. template <typename T, typename Key, typename Traits = T> class SkTDynamicHash { … }; #endif