absl::c_transform

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

NameDescription
input1The first input container.
input2The second input container.
outputThe output iterator receiving the transformed elements.
binary_opThe binary operation applied to element pairs.