Template Class numeric_limits
Defined in File numeric_limits.hpp
Inheritance Relationships
Base Type
public std::numeric_limits< T >
Class Documentation
-
template<typename T>
class numeric_limits : public std::numeric_limits<T> Expands the std numeric_limits class.
This (the non-specialized template) simply returns the same functionality (via inheritance) as the std::numeric_limits class.
Specialisations of this class expand its definitions.
Note that since this class and all its specialisations inherit the std::numeric_limits class, it is only really usable for fundamental c++ types. To extend non-fundamental types however, it is perfectly ok to specialise and add your own numeric_limits functionality.
Also note that once the future c++0x standard is in, support in std::numeric_limits will be better and we can do away with much of the implementation in the derived classes here.
- Template Parameters:
T – : the type to check (currently must be a fundamental type).
Public Functions
-
inline numeric_limits()