1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Vector.hpp

This commit is contained in:
Sandu Liviu Catalin 2021-08-24 19:14:37 +03:00
parent 31029cbaf0
commit f4c2665e86

View File

@ -164,6 +164,22 @@ template < class T > struct SqVector
{ {
} }
/* --------------------------------------------------------------------------------------------
* Copy constructor from container.
*/
explicit SqVector(const Container & v)
: mC(Poco::makeShared< Container >(v))
{
}
/* --------------------------------------------------------------------------------------------
* Move constructor from container.
*/
explicit SqVector(Container && v) noexcept
: mC(Poco::makeShared< Container >(std::move(v)))
{
}
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Move constructor. * Move constructor.
*/ */