fixed_point (deprecated)  rev.2
Binary Fixed-Point Arithmetic Library in C++
List of all members
sg14::const_integer< Integral, Value, Digits, Exponent > Class Template Reference

a compile-time-only integer type like a std::integral_constant with arithmetic support More...

#include <sg14/auxiliary/const_integer.h>

Detailed Description

template<class Integral, Integral Value, int Digits = used_bits(Value), int Exponent = trailing_bits(Value)>
class sg14::const_integer< Integral, Value, Digits, Exponent >

a compile-time-only integer type like a std::integral_constant with arithmetic support

Template Parameters
Integralthe type of Value
Valuethe integer number to be represented
Digitsautomatically calculated value (leave defaulted)
Exponentautomatically calculated value (leave defaulted)