Compile-time rational arithmetic
Template:cpp/utility/ratio/sidebar
Contents |
ratio
This section is incomplete |
ratio arithmetic
This section is incomplete |
(C++11) |
adds two ratio objects (class template) |
(C++11) |
subtracts two ratio objects (class template) |
(C++11) |
multiplies two ratio objects (class template) |
(C++11) |
divides two ratio objects (class template) |
ratio comparison
This section is incomplete |
(C++11) |
compares two ratio objects for equality (class template) |
(C++11) |
compares two ratio objects for inequality (class template) |
(C++11) |
compares two ratio objects for less than (class template) |
(C++11) |
compares two ratio objects for less than or equal to (class template) |
(C++11) |
compares two ratio objects for greater than (class template) |
(C++11) |
compares two ratio objects for greater than or equal to (class template) |
Convenience SI typedefs
typedef std::ratio<1, 1000000000000000000000000> yocto; //see below typedef std::ratio<1, 1000000000000000000000> zepto; //see below |
Template:mark c++11 feature | |