12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef BOOST_ALGORITHM_COPY_N_HPP
- #define BOOST_ALGORITHM_COPY_N_HPP
- #include <boost/config.hpp>
- namespace boost { namespace algorithm {
- template <typename InputIterator, typename Size, typename OutputIterator>
- BOOST_CXX14_CONSTEXPR OutputIterator copy_n ( InputIterator first, Size n, OutputIterator result )
- {
- for ( ; n > 0; --n, ++first, ++result )
- *result = *first;
- return result;
- }
- }}
- #endif
|