...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> BOOST_CXX14_CONSTEXPR OutputIterator copy_n(InputIterator first, Size n, OutputIterator result);