/* */ #ifndef _D_A2_ALGO_H_ #define _D_A2_ALGO_H_ #include namespace aria2 { template OutputIterator ncopy(InputIterator first, InputIterator last, int32_t count, OutputIterator destination) { OutputIterator x = destination; for(int32_t i = 0; i < count; ++i) { x = std::copy(first, last, destination); } return x; } } // namespace aria2 #endif // _D_A2_ALGO_H_