add method to move construct vector from array

This commit is contained in:
Max Lyon
2019-11-06 14:16:25 +01:00
parent 96fb20fdeb
commit eae634fe94

View File

@@ -169,6 +169,11 @@ class VectorT {
std::copy_n(it, DIM, values_.begin());
}
/// construct from an array
explicit VectorT(container&& _array) {
values_ = _array;
}
/// copy & cast constructor (explicit)
template<typename otherScalarType,
typename = typename std::enable_if<