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

Function reverse

include/boost/compute/algorithm/reverse.hpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55/// \see reverse_copy()
56template<class Iterator>
57inline void reverse(Iterator first,
58 Iterator last,
59 command_queue &queue = system::default_queue())
60{
61 size_t count = detail::iterator_range_size(first, last);
62 if(count < 2){
63 return;
64 }
65
66 detail::reverse_kernel<Iterator> kernel(first, last);
67
68 kernel.exec(queue);
69}
70
71} // end compute namespace
72} // end boost namespace

Callers 12

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
prev_permutationFunction · 0.85
dispatch_gpu_stable_sortFunction · 0.85
next_permutationFunction · 0.85
dispatch_gpu_sort_by_keyFunction · 0.85
dispatch_gpu_sortFunction · 0.85

Calls 2

iterator_range_sizeFunction · 0.85
execMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68