[#absl-c_accumulate-00] = xref:absl.adoc[absl]::c_accumulate :relfileprefix: ../ :mrdocs: Overload of `c_accumulate()` for using a binary operations other than addition for computing the accumulation. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename T, typename BinaryOp> constexpr std::decay_t<T> c_accumulate( Sequence const& sequence, T&& init, BinaryOp&& binary_op); ---- == Return Value The accumulated result. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container whose elements to accumulate. | *init* | The initial value of the accumulation. | *binary_op* | The binary operation used to combine values. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#