Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
accumtraits2.hpp
Go to the documentation of this file.
1 #pragma once
2 
8 template <typename T>
10 
11 template <>
12 class AccumulationTraits<char>
13 {
14 public:
15  using type = int;
16 };
17 
18 template <>
19 class AccumulationTraits<short>
20 {
21 public:
22  using type = int;
23 };
24 
25 template <>
27 {
28 public:
29  using type = long;
30 };
31 
32 template <>
33 class AccumulationTraits<unsigned int>
34 {
35 public:
36  using type = unsigned long;
37 };
38 
39 template <>
40 class AccumulationTraits<float>
41 {
42 public:
43  using type = double;
44 };