MCPcopy Create free account
hub / github.com/boostorg/compute / reverse_copy

Function reverse_copy

include/boost/compute/algorithm/reverse_copy.hpp:56–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54/// \see reverse()
55template<class InputIterator, class OutputIterator>
56inline OutputIterator
57reverse_copy(InputIterator first,
58 InputIterator last,
59 OutputIterator result,
60 command_queue &queue = system::default_queue())
61{
62 typedef typename std::iterator_traits<OutputIterator>::difference_type difference_type;
63
64 difference_type count = std::distance(first, last);
65
66 detail::reverse_copy_kernel<InputIterator, OutputIterator>
67 kernel(first, last, result);
68
69 // run kernel
70 kernel.exec(queue);
71
72 // return iterator to the end of result
73 return result + count;
74}
75
76} // end compute namespace
77} // end boost namespace

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

execMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68