Use std::copy_n/std::fill_n instead of std::copy/std::fill where possible.