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