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

Performs a transformation using a unary predicate&period; Stores the result in `output`&period; `absl&colon;&colon;c&lowbar;transform(input, output, unary&lowbar;op)` is equivalent to &grave;std&colon;&colon;transform(std&colon;&colon;begin(input), std&colon;&colon;end(input), std&colon;&colon;begin(output), unary&lowbar;op)&grave;&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename InputSequence,
    typename OutputRange,
    typename UnaryOp&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
c&lowbar;transform(
    InputSequence const& input,
    OutputRange&& output,
    UnaryOp&& unary&lowbar;op);
----

== Description

The `output` container must be large enough to hold all elements of `input`&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
| *input*
| The container whose elements to transform&period;
| *output*
| The destination container receiving the transformed elements&period;
| *unary&lowbar;op*
| The unary operation applied to each element&period;
|===


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