...

/

Transform Ranges

Transform Ranges

Now we will study std::transform which is used to perform transformations on a range.

The std::transform algorithm applies a unary or binary callable to a range and copies the modified elements to the destination range.

std::transform applies the unary callable fun to the elements of the input range and copies the result to result.

Access this course and 1400+ top-rated courses and projects.