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