tetl 0.1.0
Embedded Template Library
|
Go to the source code of this file.
Namespaces | |
namespace | etl |
Functions | |
template<typename InputIt, typename OutputIt> | |
constexpr auto | unique_copy (InputIt first, InputIt last, OutputIt destination) -> OutputIt |
Copies the elements from the range [first, last) , to another range beginning at d_first in such a way that there are no consecutive equal elements. Only the first element of each group of equal elements is copied. | |
template<typename InputIt, typename OutputIt, typename Predicate> | |
constexpr auto | unique_copy (InputIt first, InputIt last, OutputIt destination, Predicate pred) -> OutputIt |
Copies the elements from the range [first, last) , to another range beginning at d_first in such a way that there are no consecutive equal elements. Only the first element of each group of equal elements is copied. | |