Compile-time rational arithmetic — cppreference.com
De cppreference.com
<metanoindex/>
Le std::ratio modèle de classe et de fournir des modèles associés à la compilation de soutien arithmétique rationnelle. Chaque instanciation de ce modèle représente exactement un nombre raisonnable fini .
Original:
The class template std::ratio and associated templates provide compile-time rational arithmetic support. Each instantiation of this template exactly represents any finite rational number.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Compilation fractions
Defined in header | |
représente exacte fraction rationnelle Original: represents exact rational fraction The text has been machine-translated via Google Translate. (classe générique) | |
Plusieurs dépanneurs typedefs qui correspondent aux ratios SI sont fournies par la bibliothèque standard:
Original:
Several convenience typedefs that correspond to the SI ratios are provided by the standard library:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header | |
Type d' Original: Type The text has been machine-translated via Google Translate. |
Definition |
yocto
|
Original:
The text has been machine-translated via Google Translate. |
zepto
|
Original:
The text has been machine-translated via Google Translate. |
atto
|
std::ratio<1, 1000000000000000000>
|
femto
|
std::ratio<1, 1000000000000000>
|
pico
|
std::ratio<1, 1000000000000>
|
nano
|
std::ratio<1, 1000000000>
|
micro
|
std::ratio<1, 1000000>
|
milli
|
std::ratio<1, 1000>
|
centi
|
std::ratio<1, 100>
|
deci
|
std::ratio<1, 10>
|
deca
|
std::ratio<10, 1>
|
hecto
|
std::ratio<100, 1>
|
kilo
|
std::ratio<1000, 1>
|
mega
|
std::ratio<1000000, 1>
|
giga
|
std::ratio<1000000000, 1>
|
tera
|
std::ratio<1000000000000, 1>
|
peta
|
std::ratio<1000000000000000, 1>
|
exa
|
std::ratio<1000000000000000000, 1>
|
zetta
|
Original:
The text has been machine-translated via Google Translate. |
yotta
|
Original:
The text has been machine-translated via Google Translate. |
Moment de la compilation arithmétique rationnelle
Plusieurs modèles de classe, qui effectuent des opérations arithmétiques sur des objets ratio au moment de la compilation sont fournis .
Original:
Several class templates, that perform arithmetic operations on ratio objects at compile-time are provided.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header | |
(C++11) |
ajoute deux objets Original: adds two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
soustrait deux objets Original: subtracts two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
multiplie deux objets Original: multiplies two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
divise deux objets Original: divides two The text has been machine-translated via Google Translate. (classe générique) [edit] |
Moment de la compilation comparaison rationnelle
Plusieurs modèles de classe, qui effectuent des opérations sur des objets de comparaison ratio au moment de la compilation sont fournis .
Original:
Several class templates, that perform comparison operations on ratio objects at compile-time are provided.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header | |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |
(C++11) |
compare deux objets Original: compares two The text has been machine-translated via Google Translate. (classe générique) [edit] |