• Both forms return the position after the last written value in the destination range (the first element
that is not overwritten).
• The first form is equivalent to the conversion of a sequence of absolute values into a sequence
of relative values. In this regard, algorithm adjacent_difference() is the complement of
algorithm partial_sum() (see page 627).
• The source and destination ranges may be identical.
• The caller must ensure that the destination range is big enough or that insert iterators are used.
• op should not modify the passed arguments.
• Complexity: linear (numElems-1 calls of operator - or op(), respectively).
The following program demonstrates some examples of using adjacent_difference():