9 #ifndef ALPS_TYPE_TRAITS_AVERGAE_TYPE_H 10 #define ALPS_TYPE_TRAITS_AVERGAE_TYPE_H 12 #include <type_traits> 22 :
public std::conditional<std::is_integral<T>::value,double,T> {};
26 typedef std::valarray<typename average_type<T>::type>
type;
29 template <
class T,
class A>
31 typedef std::vector<typename average_type<T>::type,A>
type;
36 #endif // ALPS_TYPE_TRAITS_AVERGAE_TYPE_H
std::vector< typename average_type< T >::type, A > type
std::valarray< typename average_type< T >::type > type