![]() |
Negative infinity for built-in data types.The NegativeInfinity class is a wrapper class around the functionality of the blaze::Limits class to provide the possibility to assign negative infinity values to built-in data types. As negative infinity value, the largest possible negative value of the corresponding data type is used. In order to assign the negative infinity value, the NegativeInfinity class can be implicitly converted to all signed integral and floating point data types: More...
#include <Infinity.h>
Public Types | |
using | PositiveType = I |
The positive infinity type. | |
Public Member Functions | |
Conversion operators | |
constexpr | operator signed char () const |
Conversion operator to the signed char built-in type. More... | |
constexpr | operator char () const |
Conversion operator to the char built-in type. More... | |
constexpr | operator wchar_t () const |
Conversion operator to the wchar_t built-in type. More... | |
constexpr | operator short () const |
Conversion operator to the short built-in type. More... | |
constexpr | operator int () const |
Conversion operator to the int built-in type. More... | |
constexpr | operator long () const |
Conversion operator to the long built-in type. More... | |
constexpr | operator float () const |
Conversion operator to the float built-in type. More... | |
constexpr | operator double () const |
Conversion operator to the double built-in type. More... | |
constexpr | operator long double () const |
Conversion operator to the long double built-in type. More... | |
Utility functions | |
template<typename T > | |
constexpr bool | equal (const T &rhs) const |
Equality comparison to a built-in data type. More... | |
Private Member Functions | |
Constructor | |
constexpr | NegativeInfinity () |
The default constructor of the NegativeInfinity class. | |
Forbidden operations | |
NegativeInfinity & | operator= (const NegativeInfinity &ninf) |
Copy assignment operator (private & undefined) | |
void * | operator & () const |
Address operator (private & undefined) | |
Negative infinity for built-in data types.
The NegativeInfinity class is a wrapper class around the functionality of the blaze::Limits class to provide the possibility to assign negative infinity values to built-in data types. As negative infinity value, the largest possible negative value of the corresponding data type is used. In order to assign the negative infinity value, the NegativeInfinity class can be implicitly converted to all signed integral and floating point data types:
|
inline |
Equality comparison to a built-in data type.
This function compares built-in data types with their largest possible value. The function only works for built-in data types. The attempt to compare user-defined class types will result in a compile time error.
|
inline |
Conversion operator to the char built-in type.
The conversion operator returns the smallest possible char value.
|
inline |
Conversion operator to the double built-in type.
The conversion operator returns the smallest possible double value.
|
inline |
Conversion operator to the float built-in type.
The conversion operator returns the smallest possible float value.
|
inline |
Conversion operator to the int built-in type.
The conversion operator returns the smallest possible int value.
|
inline |
Conversion operator to the long built-in type.
The conversion operator returns the smallest possible long value.
|
inline |
Conversion operator to the long double built-in type.
The conversion operator returns the smallest possible long double value.
|
inline |
Conversion operator to the short built-in type.
The conversion operator returns the smallest possible short value.
|
inline |
Conversion operator to the signed char built-in type.
The conversion operator returns the smallest possible signed char value.
|
inline |
Conversion operator to the wchar_t built-in type.
The conversion operator returns the smallest possible wchar_t value.