Loading...
Searching...
No Matches
misc_algo.h
Go to the documentation of this file.
# ifndef _RHEOLEF_MISC_ALGO_H
# define _RHEOLEF_MISC_ALGO_H
#include "rheolef/config.h"
namespace rheolef {
namespace algo {
// from STL but not in std c++ lib
template<typename InputIterator, typename Size, typename OutputIterator>
OutputIterator
copy_n (InputIterator first, Size n, OutputIterator result)
{
for (; n > 0; --n) {
*result = *first;
++first;
++result;
}
return result;
}
} // namespace algo
} // namespace rheolef
# endif /* _RHEOLEF_MISC_ALGO_H */
rheolef::algo
Definition misc_algo.h:28
rheolef::algo::copy_n
OutputIterator copy_n(InputIterator first, Size n, OutputIterator result)
Definition misc_algo.h:33
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39