std::numeric_limits::is_exact
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> static const bool is_exact |
(até C++11) | |
static constexpr bool is_exact |
(desde C++11) | |
O valor de
std::numeric_limits<T>::is_exact é true para todos os tipos aritméticos T que utilizam representação exacta. Original:
The value of
std::numeric_limits<T>::is_exact is true for all arithmetic types T that use exact representation. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Especializações padrão
T
|
valor de
std::numeric_limits<T>::is_exact Original: value of std::numeric_limits<T>::is_exact The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| /* non-specialized */ | false
|
bool
|
true
|
char
|
true
|
signed char
|
true
|
unsigned char
|
true
|
wchar_t
|
true
|
char16_t
|
true
|
char32_t
|
true
|
short
|
true
|
unsigned short
|
true
|
int
|
true
|
unsigned int
|
true
|
long
|
true
|
unsigned long
|
true
|
long long
|
true
|
unsigned long long
|
true
|
float
|
false
|
double
|
false
|
long double
|
false
|
Notas
Enquanto todos os tipos fundamentais para os quais
T std::numeric_limits<T>::is_exact==true são tipos inteiros, uma biblioteca pode definir tipos exactos que não são números inteiros, por exemplo, um tipo de aritmética racional representando frações.Original:
While all fundamental types
T for which std::numeric_limits<T>::is_exact==true are integer types, a library may define exact types that aren't integers, e.g. a rational arithmetics type representing fractions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Veja também
[estática] |
identifica os tipos inteiros Original: identifies integer types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (membro estático público constante) |
[estática] |
identifica os tipos assinados Original: identifies signed types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (membro estático público constante) |
[estática] |
identifies types that represent a finite set of values (membro estático público constante) |