版本一 template<class InputIt, class OutputIt> OutputIt copy(InputIt first, InputIt last, OutputIt d_first) { while (first != last) { *d_first++ = *first++; } return d_first; } 版本二 template<class InputIt, class OutputIt, class UnaryPredicate> OutputIt copy_if(InputIt first, ...