adjacent_difference « STL Algorithms Helper « C++






1.adjacent_difference: print all differences between elements
2.adjacent_difference: print all sums with the predecessors
3.adjacent_difference: print all products between elements
4.Use adjacent_difference to convert elements in a container into relative values
5.adjacent_difference( ) returns a new sequence in which each element is the difference between adjacent elements in the original sequence.