adjacent_difference
Syntax:
#include <numeric> iterator adjacent_difference( iterator start, iterator end, iterator result ); iterator adjacent_difference( iterator start, iterator end, iterator result, BinaryFunction f ); The adjacent_difference() function calculates the differences
between adjacent elements in the range [ If a binary function adjacent_difference() runs in linear time. |