Implement and test std::transform