tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
partial_sum.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename InputIt, typename OutputIt>
constexpr auto partial_sum (InputIt first, InputIt last, OutputIt destination) -> OutputIt
 
template<typename InputIt, typename OutputIt, typename BinaryOperation>
constexpr auto partial_sum (InputIt first, InputIt last, OutputIt destination, BinaryOperation op) -> OutputIt
 Computes the partial sums of the elements in the subranges of the range [first, last) and writes them to the range beginning at destination. This version uses the given binary function op, both applying etl::move to their operands on the left hand side.