...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_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());
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: |
|