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

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename InputIt , typename Type >
constexpr auto accumulate (InputIt first, InputIt last, Type init) noexcept -> Type
 Computes the sum of the given value init and the elements in the range [first, last).
 
template<typename InputIt , typename Type , typename BinaryOperation >
constexpr auto accumulate (InputIt first, InputIt last, Type init, BinaryOperation op) noexcept -> Type
 Computes the sum of the given value init and the elements in the range [first, last).