Container-based version of the <algorithm> std::transform() function to transform a container's elements using the unary operation, storing the result in an iterator pointing to the last transformed element in the output range.
Declared in <absl/algorithm/container.h>
template<
typename InputSequence,
typename OutputIterator,
typename UnaryOp>
constexpr
/* implementation-defined */
c_transform(
InputSequence const& input,
OutputIterator&& output,
UnaryOp&& unary_op);
An iterator to the end of the transformed range in the output.
| Name | Description |
|---|---|
| input | The container whose elements to transform. |
| output | The output iterator receiving the transformed elements. |
| unary_op | The unary operation applied to each element. |