tfel
Loading...
Searching...
No Matches
tfel::fsalgo::copy< N > Class Template Reference

copy copies N elements of a container to another. More...

#include </home/runner/work/tfel/tfel/include/TFEL/FSAlgorithm/copy.hxx>

Static Public Member Functions

template<typename InputIterator, typename OutputIterator>
TFEL_HOST_DEVICE static constexpr OutputIterator exe (InputIterator p, OutputIterator q) noexcept

Detailed Description

template<unsigned int N>
class tfel::fsalgo::copy< N >

copy copies N elements of a container to another.

Parameters
Nnumber of element to be copied.

This documentation is mostly inspired from: http://www.sgi.com/tech/stl/copy.html

Author
Thomas Helfer
Date
30/06/2006

Member Function Documentation

◆ exe()

template<unsigned int N>
template<typename InputIterator, typename OutputIterator>
TFEL_HOST_DEVICE static constexpr OutputIterator tfel::fsalgo::copy< N >::exe ( InputIterator p,
OutputIterator q )
inlinestaticconstexprnoexcept

copy the element pointed to by p to the element pointed to by q and the call copy<N-1>::exe. Since calls are inlined, this recursion has no cost at runtime.

Parameters
InputIteratoriterator to the element to be copied
OutputIteratoriterator to the place where this element will be copied
Returns
OutputIterator iterator after the last element copied
Precondition
  • InputIterator is a model of Input Iterator.
  • OutputIterator is a model of Output Iterator.
  • InputIterator's value type is convertible to a type in OutputIterator's set of value types.
Author
Thomas Helfer
Date
30/06/2006

The documentation for this class was generated from the following file: