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:
parent
31029cbaf0
commit
f4c2665e86
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user