std::numeric_limits<T>:: is_bounded
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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_bounded
|
||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
static
const
bool
is_bounded
;
|
(hasta C++11) | |
|
static
constexpr
bool
is_bounded
;
|
(desde C++11) | |
El valor de
std::
numeric_limits
<
T
>
::
is_bounded
es
true
para todos los tipos aritméticos
T
que representan un conjunto finito de valores. Mientras todos los tipos fundamentales son acotados, esta constante sería
false
en una especialización de
std::numeric_limits
para un tipo aritmético de precisión arbitraria proporcionado por la biblioteca.
Especializaciones estándar
T
|
valor de std:: numeric_limits < T > :: is_bounded |
| /* 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 | true |
| double | true |
| long double | true |
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 exactos
(constante de miembro público estático) |