![]() |
Home | Libraries | People | FAQ | More |
boost::compute::unique_copy
// In header: <boost/compute/algorithm/unique_copy.hpp> template<typename InputIterator, typename OutputIterator, typename BinaryPredicate> OutputIterator unique_copy(InputIterator first, InputIterator last, OutputIterator result, BinaryPredicate op, command_queue & queue = system::default_queue()); template<typename InputIterator, typename OutputIterator> OutputIterator unique_copy(InputIterator first, InputIterator last, OutputIterator result, command_queue & queue = system::default_queue());
Makes a copy of the range [first, last) and removes all consecutive duplicate elements (determined by op
) from the copy. If op
is not provided, the equality operator is used.
Space complexity: \Omega(4n)
See Also:
unique()
Parameters: |
|
||||||||||
Returns: |
|