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
, applyf
to all elements from the input range that satisfypred
and write them to the output rangeresult
, transforming them each viaf
.