the shortcut

This commit is contained in:
MihailRis
2024-04-21 17:12:06 +03:00
parent 635e512142
commit 30a38035e2
35 changed files with 90 additions and 84 deletions
+5
View File
@@ -325,6 +325,11 @@ Map& Map::put(std::string key, bool value){
return *this;
}
Map& Map::put(std::string key, std::unique_ptr<Value> value) {
values.emplace(key, value.release());
return *this;
}
List& Map::putList(std::string key) {
List* arr = new List();
put(key, arr);