3#ifndef TETL_ALGORITHM_UNIQUE_HPP
4#define TETL_ALGORITHM_UNIQUE_HPP
17template <
typename ForwardIt,
typename Predicate>
18constexpr auto unique(ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
25 while (++first != last) {
26 if (not pred(*result, *first) and ++result != first) {
33template <
typename ForwardIt>
34constexpr auto unique(ForwardIt first, ForwardIt last) -> ForwardIt
constexpr auto move(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Moves the elements in the range [first, last), to another range beginning at destination,...
Definition move.hpp:26
constexpr auto unique(ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
Eliminates all except the first element from every consecutive group of equivalent elements from the ...
Definition unique.hpp:18
Definition adjacent_find.hpp:8
Function object for performing comparisons. Unless specialised, invokes operator== on type T....
Definition equal_to.hpp:14