Gobelijn API documentation
- generated for commit a0cbea7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
accum6.hpp
Go to the documentation of this file.
1
#pragma once
2
8
#include "
accumtraits4.hpp
"
9
#include "
sumpolicy1.hpp
"
10
11
template
<
typename
T,
typename
Policy = SumPolicy,
typename
Traits = AccumulationTraits<T>>
12
class
Accum
13
{
14
public
:
15
using
AccT
=
typename
Traits::type;
16
17
public
:
18
static
AccT
accum
(T
const
* beg, T
const
* end)
19
{
20
AccT
total = Traits::zero();
21
while
(beg != end) {
22
Policy::accumulate(total, *beg);
23
++beg;
24
}
25
return
total;
26
}
27
};
Accum::accum
static AccT accum(T const *beg, T const *end)
Definition:
accum6.hpp:18
Accum::AccT
typename Traits::type AccT
Definition:
accum6.hpp:15
Accum
Definition:
accum5.hpp:11
accumtraits4.hpp
sumpolicy1.hpp
main
cpp
template_traits
accum6.hpp
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6