Util: Implement copy-and-swap idiom and the Rule of Five in Value

This commit is contained in:
Riyyi
2022-07-16 00:51:32 +02:00
parent a1bb1b93c9
commit 3e69abdfa0
5 changed files with 131 additions and 92 deletions
+1
View File
@@ -27,6 +27,7 @@ public:
{
}
void clear() { m_members.clear(); }
void emplace(const std::string& name, Value value);
Value& operator[](const std::string& name);