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

Function unique

include/boost/compute/algorithm/unique.hpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39/// \see unique_copy()
40template<class InputIterator, class BinaryPredicate>
41inline InputIterator unique(InputIterator first,
42 InputIterator last,
43 BinaryPredicate op,
44 command_queue &queue = system::default_queue())
45{
46 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
47 typedef typename std::iterator_traits<InputIterator>::value_type value_type;
48
49 vector<value_type> temp(first, last, queue);
50
51 return ::boost::compute::unique_copy(
52 temp.begin(), temp.end(), first, op, queue
53 );
54}
55
56/// \overload
57template<class InputIterator>

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 3

unique_copyFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68