/* */ #ifndef _D_A2_ALGO_H_ #define _D_A2_ALGO_H_ #include namespace aria2 { template OutputIterator ncopy(InputIterator first, InputIterator last, size_t count, OutputIterator destination) { OutputIterator x = destination; while(count--) { x = std::copy(first, last, destination); } return x; } } // namespace aria2 #endif // _D_A2_ALGO_H_