template<class T, class InIter, class OutIter>
void forward(InIter begin, InIter end, OutIter dest) {
copy(begin, end, dest);
}
template<class T, class InIter, class OutIter>
void forward<T&&>(InIter begin, InIter end, OutIter dest) {
move(begin, end, dest);
}
template<typename T, std::size_t N>
void foo(std::array<T, N>&& x) {
std::array<T, N + 1> y = {};
forward<T>(x.begin(), x.end(), y.begin());
}