add method to move construct vector from array
This commit is contained in:
@@ -169,6 +169,11 @@ class VectorT {
|
|||||||
std::copy_n(it, DIM, values_.begin());
|
std::copy_n(it, DIM, values_.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// construct from an array
|
||||||
|
explicit VectorT(container&& _array) {
|
||||||
|
values_ = _array;
|
||||||
|
}
|
||||||
|
|
||||||
/// copy & cast constructor (explicit)
|
/// copy & cast constructor (explicit)
|
||||||
template<typename otherScalarType,
|
template<typename otherScalarType,
|
||||||
typename = typename std::enable_if<
|
typename = typename std::enable_if<
|
||||||
|
|||||||
Reference in New Issue
Block a user