add some methods in compoundfile for class CFStorage

This commit is contained in:
Ivan Morozov
2022-07-04 23:03:48 +03:00
parent 98c72833c4
commit b739a465a5
9 changed files with 269 additions and 12 deletions

View File

@ -73,3 +73,14 @@ std::shared_ptr<T> SVector<T>::dequeue()
array.erase(array.begin());
return pElement;
}
template<class T>
template<class P>
SVector<P> SVector<T>::cast() const
{
SVector<P> res(array.size());
for (auto& spT : array)
res.push_back(std::dynamic_pointer_cast<P> (spT));
return res;
}