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

Function unique

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

Source from the content-addressed store, hash-verified

34/// \see unique_copy()
35template<class InputIterator, class BinaryPredicate>
36inline InputIterator unique(InputIterator first,
37 InputIterator last,
38 BinaryPredicate op,
39 command_queue &queue = system::default_queue())
40{
41 typedef typename std::iterator_traits<InputIterator>::value_type value_type;
42
43 vector<value_type> temp(first, last, queue);
44
45 return ::boost::compute::unique_copy(
46 temp.begin(), temp.end(), first, op, queue
47 );
48}
49
50/// \overload
51template<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