![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Struct containing information about primitive types. More...
#include <shambase/include/shambase/primitive_type_info.hpp>
Public Types | |
| using | T = _T |
| The type of the primitive type. | |
Static Public Attributes | |
| static constexpr bool | is_specialized = false |
| Whether the type is a specialized primitive type (i.e. not a float). | |
| static constexpr bool | is_float = false |
| Whether the type is a float type. | |
| static constexpr bool | is_int = false |
| Whether the type is an integer type. | |
| static constexpr bool | is_unsigned = false |
| Whether the type is an unsigned integer type. | |
| static constexpr T | max = std::numeric_limits<T>::max() |
| The maximum value of the type. | |
| static constexpr T | min = std::numeric_limits<T>::lowest() |
| The minimum value of the type (negative if float). | |
| static constexpr T | epsilon = std::numeric_limits<T>::epsilon() |
| The smallest value of the type that can be represented exactly. | |
| static constexpr T | infty = std::numeric_limits<T>::infinity() |
| Infinity if the type can represent it. | |
Struct containing information about primitive types.
| T | The type of the primitive type |
Definition at line 32 of file primitive_type_info.hpp.
| using shambase::primitive_type_info< _T >::T = _T |
The type of the primitive type.
Definition at line 34 of file primitive_type_info.hpp.
|
staticconstexpr |
The smallest value of the type that can be represented exactly.
Definition at line 55 of file primitive_type_info.hpp.
|
staticconstexpr |
Infinity if the type can represent it.
Definition at line 58 of file primitive_type_info.hpp.
|
staticconstexpr |
Whether the type is a float type.
Definition at line 40 of file primitive_type_info.hpp.
|
staticconstexpr |
Whether the type is an integer type.
Definition at line 43 of file primitive_type_info.hpp.
|
staticconstexpr |
Whether the type is a specialized primitive type (i.e. not a float).
Definition at line 37 of file primitive_type_info.hpp.
|
staticconstexpr |
Whether the type is an unsigned integer type.
Definition at line 46 of file primitive_type_info.hpp.
|
staticconstexpr |
The maximum value of the type.
Definition at line 49 of file primitive_type_info.hpp.
|
staticconstexpr |
The minimum value of the type (negative if float).
Definition at line 52 of file primitive_type_info.hpp.