Add a vtkm::Vec<T,N> fast path for CopyInto a vec of the same type

Rather than use the general case which has a for loop we can just
use the assignment operator.
This commit is contained in:
Robert Maynard 2018-05-02 15:51:16 -04:00
parent 9edd5cd383
commit 5bc9ecef16

@ -798,6 +798,8 @@ public:
: Superclass(src)
{
}
inline VTKM_EXEC_CONT void CopyInto(Vec<T, Size>& dest) const { dest = *this; }
};
//-----------------------------------------------------------------------------