...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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());
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: \Omega(4n)
See Also:
unique_copy()
Parameters: |
|
||||||||
Returns: |
|