std::numeric_limits<T>:: has_denorm
From cppreference.net
<
cpp
|
types
|
numeric limits
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::numeric_limits
| Static constants | ||||
|
numeric_limits::has_denorm
|
||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
static
const
std::
float_denorm_style
has_denorm
;
|
(C++11 이전) | |
|
static
constexpr
std::
float_denorm_style
has_denorm
;
|
(C++11 이후)
(C++23에서 사용 중단됨) |
|
std:: numeric_limits < T > :: has_denorm 값은 서브노멀 값 을 지원하는 부동소수점 타입들을 식별합니다.
표준 특수화
T
|
std:: numeric_limits < T > :: has_denorm 의 값 |
| /* non-specialized */ | std::denorm_absent |
| bool | std::denorm_absent |
| char | std::denorm_absent |
| signed char | std::denorm_absent |
| unsigned char | std::denorm_absent |
| wchar_t | std::denorm_absent |
| char8_t (C++20 이후) | std::denorm_absent |
| char16_t (C++11 이후) | std::denorm_absent |
| char32_t (C++11 이후) | std::denorm_absent |
| short | std::denorm_absent |
| unsigned short | std::denorm_absent |
| int | std::denorm_absent |
| unsigned int | std::denorm_absent |
| long | std::denorm_absent |
| unsigned long | std::denorm_absent |
| long long (C++11 이후) | std::denorm_absent |
| unsigned long long (C++11 이후) | std::denorm_absent |
| float | 일반적으로 std::denorm_present |
| double | 일반적으로 std::denorm_present |
| long double | 일반적으로 std::denorm_present |
참고 항목
|
[static]
|
주어진 부동 소수점 타입의 가장 작은 양의 서브노멀 값을 반환
(public static member function) |
|
부동 소수점 비정규화 모드를 나타냄
(enum) |