...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::copy_n — Copies exactly n (n > 0) elements from the range starting at first to the range starting at result.
// In header: <boost/algorithm/cxx11/copy_n.hpp> template<typename InputIterator, typename Size, typename OutputIterator> OutputIterator copy_n(InputIterator first, Size n, OutputIterator result);
![]() |
Note |
---|---|
This function is part of the C++2011 standard library. We will use the standard one if it is available, otherwise we have our own implementation. |
Parameters: |
|
||||||
Returns: |
The updated output iterator |