#include "paal/utils/functors.hpp"
#include "paal/utils/type_functions.hpp"
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/algorithm/max_element.hpp>
#include <boost/range/algorithm/min_element.hpp>
#include <boost/range/numeric.hpp>
Go to the source code of this file.
|
| paal |
| global namespace of project.
|
|
|
template<typename Range , typename T , typename Functor , typename BinaryOperation = utils::plus> |
T | paal::accumulate_functor (const Range &rng, T init, Functor f, BinaryOperation bin_op=BinaryOperation{}) |
| combination of boost::accumulate and boost::adaptors::transformed
|
|
template<typename Range , typename Functor > |
auto | paal::sum_functor (const Range &rng, Functor f) |
| sum of functor values over the range elements
|
|
template<typename Range , typename Functor > |
auto | paal::max_element_functor (Range &&range, Functor f) |
| combination of boost::max_element and boost::adaptors::transformed
|
|
template<typename Range , typename Functor > |
auto | paal::min_element_functor (Range &&range, Functor f) |
| combination of boost::min_element and boost::adaptors::transformed
|
|
- Author
- Piotr Wygocki, Robert Rosolek, Andrzej Pacuk
- Version
- 1.0
- Date
- 2014-11-18
Definition in file accumulate_functors.hpp.