numeric.hpp File Reference

numeric.hpp File Reference#

Composable Kernel: numeric.hpp File Reference
numeric.hpp File Reference
#include <iterator>
#include <numeric>

Go to the source code of this file.

Namespaces

namespace  ck

Functions

template<typename T, typename ForwardIterator, typename Size, typename BinaryOperation>
auto ck::accumulate_n (ForwardIterator first, Size count, T init, BinaryOperation op) -> decltype(std::accumulate(first, std::next(first, count), init, op))