Data Structures | Namespaces

/export/development/ViennaMath/viennamath/compiletime/promote_traits.hpp File Reference

Deduces the result type of the possibly mixed addition/subtraction/multiplication/division of integers and floating point types. More...

#include "viennamath/forwards.h"

Go to the source code of this file.

Data Structures

struct  promote_traits< T, OP, U >
 For two numeric types T and U with objects t and u respectively, the result type of t+u is returned. Default case: return the basic numeric type for ViennaMath. More...
struct  promote_traits< T, OP, T >
 The result type of two operands of the same type is of the same type again (cf. standard C/C++ behavior for integers). More...
struct  promote_traits< double, OP, long >
struct  promote_traits< long, OP, double >
struct  promote_traits< double, OP, int >
struct  promote_traits< int, OP, double >
struct  promote_traits< double, OP, float >
struct  promote_traits< float, OP, double >
struct  promote_traits< float, OP, long >
struct  promote_traits< long, OP, float >
struct  promote_traits< float, OP, int >
struct  promote_traits< int, OP, float >
struct  promote_traits< long, op_div< NumericType >, long >
struct  promote_traits< long, op_div< NumericType >, int >
struct  promote_traits< int, op_div< NumericType >, long >

Namespaces

namespace  viennamath
 

The main ViennaMath namespace. All types and functions for the user reside here.



Detailed Description

Deduces the result type of the possibly mixed addition/subtraction/multiplication/division of integers and floating point types.