#include <Sequence/preferFloatingTypes.hpp>
This class contains a public member "type", which is a typedef. What type is a typedef for is determined as follows: When instantiated with two types, T and T2, if T or T2 is double, type is double. Else, if either T or T2 is float, and the other type is non-floating, type is float. If both T and T2 are non-floating, type is T. For example:
std::cout << typeid(Sequence::preferFloatingTypes<float,double>::type).name ()
<< std::endl
<< typeid(Sequence::preferFloatingTypes<double,float>::type).name()
<< std::endl
<< typeid(Sequence::preferFloatingTypes<double,int>::type).name()
<< std::endl
<< tpyeid(Sequence::preferFloatingTypes<float,int>::type).name()
<< std::endl
<< typeid(Sequence::preferFloatingTypes<int,unsigned>::type).name()
<< std::endl;
Definition at line 39 of file preferFloatingTypes.hpp.
1.6.3