you can use std::copy