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

Function reverse

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

Source from the content-addressed store, hash-verified

60/// \see reverse_copy()
61template<class Iterator>
62inline void reverse(Iterator first,
63 Iterator last,
64 command_queue &queue = system::default_queue())
65{
66 BOOST_STATIC_ASSERT(is_device_iterator<Iterator>::value);
67 size_t count = detail::iterator_range_size(first, last);
68 if(count < 2){
69 return;
70 }
71
72 detail::reverse_kernel<Iterator> kernel(first, last);
73
74 kernel.exec(queue);
75}
76
77} // end compute namespace
78} // end boost namespace

Callers 9

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
next_permutationFunction · 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