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

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename InputIt, typename OutputIt>
constexpr auto adjacent_difference (InputIt first, InputIt last, OutputIt destination) -> OutputIt
 
template<typename InputIt, typename OutputIt, typename BinaryOperation>
constexpr auto adjacent_difference (InputIt first, InputIt last, OutputIt destination, BinaryOperation op) -> OutputIt
 Computes the differences between the second and the first of each adjacent pair of elements of the range [first, last) and writes them to the range beginning at destination + 1. An unmodified copy of *first is written to *destination.