ensureFloating< T, T2, floatingType > Struct Template Reference
[Metaprogramming]

#include <Sequence/ensureFloating.hpp>


Detailed Description

template<typename T, typename T2, typename floatingType = double>
struct ensureFloating< T, T2, floatingType >

A metaprogram to ensure that a floating type is chosen. During compilation, if either T or T2 are floating types, the floating type is selected according to the rules of Sequence::preferFloatingTypes. If neither T nor T2 is a floating type, floatingType is selected. Compile-time assertions check that T and T2 are arithmetic types, and the floatingType is indeed a floating type.

Definition at line 33 of file ensureFloating.hpp.


The documentation for this struct was generated from the following file:

Generated on Mon Jul 12 15:22:02 2010 for libsequence by  doxygen 1.6.1