// Copyright (C) 2018 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef HASHMAP_H #define HASHMAP_H #include namespace WTF { template class HashMap final : public QHash { public: void add(const Key &k, const Value &v) { QHash::insert(k, v); } Value get(const Key &k) { return QHash::value(k); } }; } using WTF::HashMap; #endif