[#absl-c_transform-0a]
= xref:absl.adoc[absl]::c&lowbar;transform
:relfileprefix: ../
:mrdocs:

Performs a transformation using a binary predicate&period; Stores the result in `output`&period; Applies `binary&lowbar;op` to the first N elements of `input1` and `input2`, where N &equals; min(size(input1), size(input2))&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputSequence1,
    typename InputSequence2,
    typename OutputRange,
    typename BinaryOp&gt;
constexpr
std::common&lowbar;type&lowbar;t&lt;&sol;&ast; implementation-defined &ast;&sol;, &sol;&ast; implementation-defined &ast;&sol;&gt;
c&lowbar;transform(
    InputSequence1 const& input1,
    InputSequence2 const& input2,
    OutputRange&& output,
    BinaryOp&& binary&lowbar;op);
----

== Description

The `output` container must be large enough to hold all N elements&semi; this function does not resize `output`&period;

== Return Value

This overload returns no value&semi; the results are written into `output`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *input1*
| The first input container&period;
| *input2*
| The second input container&period;
| *output*
| The destination container receiving the transformed elements&period;
| *binary&lowbar;op*
| The binary operation applied to element pairs&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
