std::numeric_limits<T>:: is_exact
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
| Static constants | ||||
|
numeric_limits::is_exact
|
||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
static
const
bool
is_exact
;
|
(hasta C++11) | |
|
static
constexpr
bool
is_exact
;
|
(desde C++11) | |
El valor de
std::
numeric_limits
<
T
>
::
is_exact
es
true
para todos los tipos aritméticos
T
que utilizan representación exacta.
Especializaciones estándar
T
|
valor de std:: numeric_limits < T > :: is_exact |
| /* non-specialized */ | false |
| bool | true |
| char | true |
| signed char | true |
| unsigned char | true |
| wchar_t | true |
| char8_t (desde C++20) | true |
| char16_t (desde C++11) | true |
| char32_t (desde C++11) | true |
| short | true |
| unsigned short | true |
| int | true |
| unsigned int | true |
| long | true |
| unsigned long | true |
| long long (desde C++11) | true |
| unsigned long long (desde C++11) | true |
| float | false |
| double | false |
| long double | false |
Notas
Mientras que todos los tipos fundamentales
T
para los cuales
std::
numeric_limits
<
T
>
::
is_exact
==
true
son tipos enteros, una biblioteca puede definir tipos exactos que no sean enteros, por ejemplo, un tipo de aritmética racional que represente fracciones.
Véase también
|
[static]
|
identifica tipos enteros
(constante de miembro público estático) |
|
[static]
|
identifica tipos con signo
(constante de miembro público estático) |
|
[static]
|
identifica tipos que representan un conjunto finito de valores
(constante de miembro público estático) |