mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
add some methods in compoundfile for class CFStorage
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user