cpp/algorithm/transform

applies the given function to a range and stores the result in another range, keeping the original elements order and beginning at. @1@ The unary operation is applied to the range defined by. @3@ The binary operation is applied to pairs of elements from two ranges: one defined by  and the other beginning at. @2,4@ Same as, but executed according to.

and must not invalidate any iterators, including the end iterators, or modify any elements of the ranges involved.

Return value
Output iterator to the element that follows the last element transformed.

Complexity
@1-2@ Exactly applications of

@3-4@ Exactly applications of