Base Framework
Public Types | List of all members
primitives::FloatingPoint< TYPE > Class Template Reference

Is floating point primitive type. More...

#include <base/Primitives.h>

Public Types

enum  { IS_FLOATING_POINT = false }
 

Detailed Description

template<class TYPE>
class primitives::FloatingPoint< TYPE >

Is floating point primitive type.

Specifies whether or not the type is a floating point type.

Example:

template<class TYPE>
void myFunction(const TYPE& value) noexcept
{
if (Primitives::FloatingPoint<TYPE>::IS_FLOATING_POINT) {
// do something
} else if (Primitives::Cardinal<TYPE>::IS_CARDINAL) {
// do something
} else {
// do something
}
}

Member Enumeration Documentation

◆ anonymous enum

template<class TYPE >
anonymous enum
Enumerator
IS_FLOATING_POINT 

True if type is a floating point type.