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
@@ -30,6 +30,7 @@ public:
{
}
void clear() { m_elements.clear(); }
void emplace_back(Value element);
void reserve(size_t size) { m_elements.reserve(size); }