별의 공부 블로그 🧑🏻‍💻
728x90
728x170

*[header][other] ratio (C++11)


<ratio>

Ratio header
This header declares the ratio class template and several auxiliary types to operate with them.

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 arithmetic:


ratio comparison:



내용 출처 : http://www.cplusplus.com/reference/ratio/

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
⚠️AdBlock이 감지되었습니다. 원할한 페이지 표시를 위해 AdBlock을 꺼주세요.⚠️
starrykss
starrykss
별의 공부 블로그 🧑🏻‍💻


📖 Contents 📖