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
accum4.hpp
Go to the documentation of this file.
1
#pragma once
2
8
#include "
accumtraits4.hpp
"
9
10
template
<
typename
T>
11
inline
typename
AccumulationTraits<T>::type
accum
(
const
T* beg,
const
T* end)
12
{
13
using
AccT =
typename
AccumulationTraits<T>::type
;
14
15
AccT total =
AccumulationTraits<T>::zero
();
16
while
(beg != end) {
17
total += *beg;
18
++beg;
19
}
20
return
total;
21
}
accumtraits4.hpp
accum
AccumulationTraits< T >::type accum(const T *beg, const T *end)
Definition:
accum4.hpp:11
AccumulationTraits
Definition:
accumtraits2.hpp:9
main
cpp
template_traits
accum4.hpp
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6