Ocean
Ocean::FloatTyper< T > Struct Template Reference

This struct is a helper struct providing a floating point data type best matching for a given data type. More...

Public Types

typedef float Type
 The 32 bit floating point data type for any data type T but 'double'. More...
 

Detailed Description

template<typename T>
struct Ocean::FloatTyper< T >

This struct is a helper struct providing a floating point data type best matching for a given data type.

The resulting data type is either a 32 bit floating point data type or a 64 bit floating point data type.
Overall, the Type field of this struct follows this simple pattern:

T:                 MatchingFloat<T>::Type:
double             double
float              float
char               float
int                float
'any other type'   float
Template Parameters
TThe data type for which the matching floating point data type is needed

Member Typedef Documentation

◆ Type

template<typename T >
typedef float Ocean::FloatTyper< T >::Type

The 32 bit floating point data type for any data type T but 'double'.


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