// 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 HASHSET_H #define HASHSET_H #include namespace WTF { template class HashSet final : public QSet { public: struct SetAddResult { bool isNewEntry; }; SetAddResult add(const Key &k) { if (QSet::find(k) == QSet::constEnd()) { QSet::insert(k); return { true }; } return { false }; } }; } using WTF::HashSet; #endif