Template Function rcppsw::algorithm::transform_if
Defined in File transform.hpp
Function Documentation
-
template<class InputIterator, class OutputIterator, class Predicate, class UnaryFunction>
OutputIterator rcppsw::algorithm::transform_if(InputIterator first, InputIterator last, OutputIterator result, const Predicate &pred, const UnaryFunction &f) Given an input range defined by (
first,last), and a filtering predicatepred, applyfto all elements from the input range that satisfypredand write them to the output rangeresult, transforming them each viaf.