Stratax
0.3.1
Loading...
Searching...
No Matches
ReductionTraits.hpp
1
#pragma once
2
3
#include <type_traits>
4
13
template
<
typename
T>
14
struct
ReductionTraits
15
{
16
using
sum_type = T;
17
using
prod_type = T;
18
};
19
26
template
<
typename
T>
27
using
reduction_sum_t =
28
typename
ReductionTraits<std::remove_cvref_t<T>
>::sum_type;
29
36
template
<
typename
T>
37
using
reduction_prod_t =
38
typename
ReductionTraits<std::remove_cvref_t<T>
>::prod_type;
ReductionTraits
Selects accumulator and result types for numeric reductions.
Definition
ReductionTraits.hpp:15
include
stratax
core
ReductionTraits.hpp
Generated by
1.9.8