adds Array::make and Dictionary::make static methods and has variadic template functions use those

This commit is contained in:
danielytics
2018-03-07 10:27:34 +00:00
parent c7b03c4132
commit 01db553c49
4 changed files with 13 additions and 2 deletions

View File

@@ -16,6 +16,11 @@ public:
Dictionary(const Dictionary & other);
Dictionary & operator=(const Dictionary & other);
template <class... Args>
static Dictionary make(Args... args) {
return helpers::add_all(Dictionary(), args...);
}
void clear();
bool empty() const;