4#ifndef TETL_ALGORITHM_TRANSFORM_HPP
5#define TETL_ALGORITHM_TRANSFORM_HPP
24template <
typename InputIt,
typename OutputIt,
typename UnaryOp>
25constexpr auto transform(InputIt first, InputIt last, OutputIt dest, UnaryOp op) -> OutputIt
27 for (; first != last; ++first, (
void)++dest) {
33template <
typename InputIt1,
typename InputIt2,
typename OutputIt,
typename BinaryOp>
34constexpr auto transform(InputIt1 first1, InputIt1 last1, InputIt2 first2, OutputIt dest, BinaryOp op) -> OutputIt
36 for (; first1 != last1; ++first1, (
void)++first2, ++dest) {
37 *dest = op(*first1, *first2);
constexpr auto transform(InputIt first, InputIt last, OutputIt dest, UnaryOp op) -> OutputIt
Definition transform.hpp:25
constexpr auto transform(InputIt1 first1, InputIt1 last1, InputIt2 first2, OutputIt dest, BinaryOp op) -> OutputIt
Definition transform.hpp:34
Definition adjacent_find.hpp:9