Swtich EBG to tar file

This commit is contained in:
Patrick Niklaus
2018-03-17 01:37:02 +00:00
parent c61198b26b
commit cf5f6be472
5 changed files with 52 additions and 11 deletions
+8
View File
@@ -228,6 +228,14 @@ template <typename ElementT> class DeallocatingVector
return *this;
}
DeallocatingVector(std::initializer_list<ElementT> elements)
{
for (auto && elem : elements)
{
emplace_back(std::move(elem));
}
}
~DeallocatingVector() { clear(); }
friend void swap<>(DeallocatingVector<ElementT> &lhs, DeallocatingVector<ElementT> &rhs);