50#ifndef LASS_GUARDIAN_OF_INCLUSION_STDE_EXTENDED_ALGORITHM_H
51#define LASS_GUARDIAN_OF_INCLUSION_STDE_EXTENDED_ALGORITHM_H
66template <
class InputIterator,
class Size,
class OutputIterator>
67OutputIterator
copy_n(InputIterator first, Size count,
68 OutputIterator result)
70 for (Size i=0;i<count;++i)
79template <
class InputIterator,
class OutputIterator,
class Size>
80OutputIterator
repeat(InputIterator first, InputIterator last, OutputIterator output, Size n)
82 for (Size i = 0; i < n; ++i)
84 output = std::copy(first, last, output);
94template <
class Container,
class Size>
inline
95Container repeat_c(
const Container& iC, Size n)
98 repeat(iC.begin(), iC.end(), std::back_inserter(result), n);
104template <
class Container,
class Size>
inline
105Container& inplace_repeat_c(Container& iC, Size n)
108 repeat(iC.begin(), iC.end(), std::back_inserter(temp), n);
OutputIterator copy_n(InputIterator first, Size count, OutputIterator result)
copy count elements from sequence starting at first to sequence starting at result
OutputIterator repeat(InputIterator first, InputIterator last, OutputIterator output, Size n)
copy sequence first to last n times to sequence starting at output
lass extensions to the standard library
Library for Assembled Shared Sources.