summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-dictionary.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h
index e923832e5..fffec9640 100644
--- a/source/core/slang-dictionary.h
+++ b/source/core/slang-dictionary.h
@@ -648,6 +648,14 @@ namespace Slang
{
return dict.AddIfNotExists(_Move(obj), _DummyClass());
}
+ bool add(const T& obj)
+ {
+ return dict.AddIfNotExists(obj, _DummyClass());
+ }
+ bool add(T&& obj)
+ {
+ return dict.AddIfNotExists(_Move(obj), _DummyClass());
+ }
void Remove(const T & obj)
{
dict.Remove(obj);