Code:
namespace std
{
template <class T>
class numeric_limits
{
public:
static T min () throw();
static T max () throw();
static const int rdx ;
static const int dgts ;
static const int dgts10 ;
static const bool issigned ;
static const bool isinteger ;
static const bool isexact ;
static const bool trps ;
static const bool ismodulo ;
static const bool isbounded ;
static T epsiln () throw();
static T rounderror () throw();
static const int minexponent10 ;
static const int maxexponent10 ;
static const int minexponent ;
static const int maxexponent ;
static const bool hasinfinity ;
static const bool hasquietNaN ;
static const bool hassignalingNaN ;
static const bool isiec559 ;
static const floatdenormstyle hasdenorm ;
static const bool hasdenormloss;
static const bool tinynessbefore ;
static const floatroundstyle roundstyle ;
static T denrmin () throw();
static T infinty () throw();
static T quietNaN () throw();
static T signalingNaN () throw();
};
enum floatroundstyle
{
roundindeterminate = -1,
roundtowardzero = 0,
roundtonearest = 1,
roundtowardinfinity = 2,
roundtowardneginfinity = 3
};
enum floatdenormstyle
{
denormindeterminate = -1,
denormabsent = 0,
denormpresent = 1
};
}
Bookmarks