diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-dictionary.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h index df5ee520d..4c352d55b 100644 --- a/source/core/slang-dictionary.h +++ b/source/core/slang-dictionary.h @@ -1003,7 +1003,17 @@ namespace Slang }; template <typename T> class OrderedHashSet : public HashSetBase<T, OrderedDictionary<T, _DummyClass>> - {}; + { + public: + T& getLast() + { + return this->dict.Last().Key; + } + void removeLast() + { + this->Remove(getLast()); + } + }; } #endif |
