adjacent_difference « STL Algorithms Helper « C++ Tutorial






32.4.adjacent_difference
32.4.1.adjacent_difference: print all differences between elements
32.4.2.adjacent_difference: print all sums with the predecessors
32.4.3.adjacent_difference: print all products between elements
32.4.4.Use adjacent_difference to convert elements in a container into relative values