Compile-time rational arithmetic - cppreference.com
De cppreference.com
<metanoindex/>
O std::ratio modelo de classe e modelos associados fornecer em tempo de compilação apoio aritmética racional. Cada instanciação deste modelo exatamente representa qualquer número finito racional.
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.
Tempo de compilação frações
Defined in header | |
representa fração racional exato Original: represents exact rational fraction The text has been machine-translated via Google Translate. (modelo de classe) | |
Typedefs conveniência vários que correspondem aos índices de SI são fornecidos pela biblioteca padrão:
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 | |
Tipo 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. |
Tempo de compilação aritmética racional
Vários modelos de classe, que executam operações aritméticas em objetos ratio em tempo de compilação são fornecidos.
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) |
adiciona dois objetos Original: adds two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
subtrai dois objetos Original: subtracts two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
multiplica dois objetos Original: multiplies two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
divide dois objetos Original: divides two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
Tempo de compilação comparação racional
Vários modelos de classe, que realizam operações de comparação em objetos ratio em tempo de compilação são fornecidos.
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) |
compara dois objetos Original: compares two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
compara dois objetos Original: compares two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
compara dois objetos Original: compares two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
compares two ratio objects for less than or equal to at compile-time (modelo de classe) [edit] |
(C++11) |
compara dois objetos Original: compares two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |
(C++11) |
compara dois objetos Original: compares two The text has been machine-translated via Google Translate. (modelo de classe) [edit] |