Util: Add Json::Value at() functions

This commit is contained in:
Riyyi
2022-07-08 13:55:40 +02:00
parent 4487c800df
commit a209452a68
6 changed files with 41 additions and 12 deletions
+3 -3
View File
@@ -29,10 +29,10 @@ public:
void emplace(const std::string& name, Value value);
Value& at(const std::string& name);
Value& operator[](const std::string& name) { return at(name); }
Value& operator[](const std::string& name);
Value& at(const std::string& name) { return m_members.at(name); }
const Value& at(const std::string& name) const { return m_members.at(name); }
const Value& operator[](const std::string& name) const { return m_members.at(name); }
size_t size() const { return m_members.size(); }
const std::map<std::string, Value>& members() const { return m_members; }