728x90
728x170
*[header][other] ratio (C++11)
<ratio>
Ratio header
A ratio expresses a proportion (such as 1:3, or 1000:1) as a set of two compile-time constants (its numerator and its denominator). The type itself is used to express the ratio (objects of these types hold no value).
Within the standard library, ratio types are used as template parameters for duration objects (see chrono header).
Classes
- ratio
- Ratio (class template )
ratio arithmetic:
- ratio_add
- Add two ratios (class template )
- ratio_subtract
- Subtract ratios (class template )
- ratio_multiply
- Multiply two ratios (class template )
- ratio_divide
- Divide ratios (class template )
ratio comparison:
- ratio_equal
- Compare ratios (class template )
- ratio_not_equal
- Compare ratios for inequality (class template )
- ratio_less
- Compare ratios for less-than inequality (class template )
- ratio_less_equal
- Compare ratios for equality or less-than inequality (class template )
- ratio_greater
- Compare ratios for greater than inequality (class template )
- ratio_greater_equal
- Compare ratios for equality or greater-than inequality (class template )
728x90
그리드형(광고전용)
'Programming > C++' 카테고리의 다른 글
[header][other] system_error (C++11) (0) | 2017.11.08 |
---|---|
[header][other] string (0) | 2017.11.08 |
[header][other] stdexcept (0) | 2017.11.08 |
[header][other] regex (C++11) (0) | 2017.11.08 |
[header][other] random (C++11) (0) | 2017.11.08 |
[header][other] numeric (0) | 2017.11.08 |
[header][other] new (0) | 2017.11.08 |
[header][other] memory (0) | 2017.11.08 |