Overload of c_transform() for performing a transformation using a binary predicate. Applies binary_op to the first N elements of c1 and c2, where N = min(size(c1), size(c2)).
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename InputSequence1,
typename InputSequence2,
typename OutputIterator,
typename BinaryOp>
constexpr
/* implementation-defined */
c_transform(
InputSequence1 const& input1,
InputSequence2 const& input2,
OutputIterator&& output,
BinaryOp&& binary_op);
Return Value
An iterator to the end of the transformed range in the output.
Parameters
Name |
Description |
input1 |
The first input container. |
input2 |
The second input container. |
output |
The output iterator receiving the transformed elements. |
binary_op |
The binary operation applied to element pairs. |
Created with MrDocs