tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
unique.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename ForwardIt>
constexpr auto unique (ForwardIt first, ForwardIt last) -> ForwardIt
 Eliminates all except the first element from every consecutive group of equivalent elements from the range [first, last) and returns a past-the-end iterator for the new logical end of the range.
 
template<typename ForwardIt, typename Predicate>
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 range [first, last) and returns a past-the-end iterator for the new logical end of the range.