std::numeric_limits::is_exact
De cppreference.com
< cpp | types | numeric limits
![]() |
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. |
static const bool is_exact |
(avant C++11) | |
static constexpr bool is_exact |
(depuis C++11) | |
La valeur de std::numeric_limits<T>::is_exact est true pour tous les types arithmétiques
T
qui utilisent une représentation exacte . 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.
[modifier] Spécialisations standard
T
|
valeur 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 |
[modifier] Notes
Bien que tous les types fondamentaux
T
pour laquelle std::numeric_limits<T>::is_exact==true sont les types entiers, une bibliothèque peut définir des types précis qui ne sont pas des nombres entiers, par exemple, un type arithmétique rationnelle représentant des fractions .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.
[modifier] Voir aussi
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
identifie les types entiers 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. (constante membre statique publique) |
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
identifie les types signés 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. (constante membre statique publique) |
[ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
identifie des types qui représentent un ensemble fini de valeurs Original: identifies types that represent a finite set of values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |