tfel
Loading...
Searching...
No Matches
tfel::fsalgo::copy< 2u > Struct Reference

partial specialisation of struct copy to end recursion. 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 auto exe (InputIterator p, OutputIterator q) noexcept
template<typename InputIterator, typename OutputIterator>
requires ( !(tfel::typetraits::IsRandomAccessIterator<InputIterator>::cond && tfel::typetraits::IsRandomAccessIterator<OutputIterator>::cond))
static TFEL_HOST_DEVICE constexpr auto exe (InputIterator p, OutputIterator q) noexcept

Detailed Description

partial specialisation of struct copy to end recursion.

This is disabled if NO_FSALGORITHM_SPECIALISATION is defined

See also
NO_FSALGORITHM_SPECIALISATION
Author
Thomas Helfer
Date
30/06/2006

Member Function Documentation

◆ exe() [1/2]

template<typename InputIterator, typename OutputIterator>
requires ( !(tfel::typetraits::IsRandomAccessIterator<InputIterator>::cond && tfel::typetraits::IsRandomAccessIterator<OutputIterator>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::fsalgo::copy< 2u >::exe ( InputIterator p,
OutputIterator q )
inlinestaticconstexprnoexcept

General version

See also
copy<N>::exe for details

◆ exe() [2/2]

template<typename InputIterator, typename OutputIterator>
TFEL_HOST_DEVICE static constexpr auto tfel::fsalgo::copy< 2u >::exe ( InputIterator p,
OutputIterator q )
inlinestaticconstexprnoexcept

This version of copy is used if iterators are Random Access. Test is based on the tfel::typetraits::IsRandomAccessIterator class.

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 Random Access Iterator.
  • OutputIterator is a model of Random Access 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 struct was generated from the following file: