Type implicitly convertible to the maximum of all types for which a specialisation of std::numeric_limits has been defined.
More...
#include <types.h>
Public Member Functions | |
| template<typename Type > | |
| constexpr | operator Type () const |
Conversion operator to type Type returning the maximal defined value. More... | |
Type implicitly convertible to the maximum of all types for which a specialisation of std::numeric_limits has been defined.
Construction of this class will yield an object that is convertible to any type Type for which std::numeric_limits<Type> is valid. Upon conversion to this type, the new object of type Type will have the value returned by std::numeric_limits<Type>::max().
You can use this in any place where you would normally use std::numeric_limits<Type>::max() under the condition that the conversion is well-defined (e.g. not when that argument of a function is over-loaded).