use std::copy to copy the array of Tp.