[#absl-c_adjacent_difference-08] = xref:absl.adoc[absl]::c_adjacent_difference :relfileprefix: ../ :mrdocs: Container‐based version of the <numeric> `std::adjacent_difference()` function to compute the difference between each element and the one preceding it and write it to an iterator. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename InputSequence, typename OutputIt> constexpr OutputIt c_adjacent_difference( InputSequence const& input, OutputIt output_first); ---- == Return Value An iterator to the end of the written range in the output. == Parameters [cols="1,4"] |=== | Name| Description | *input* | The container whose elements to process. | *output_first* | The output iterator receiving the differences. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#