MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
比率

比率的主类和运算操作 更多...

struct  ratio< Numerator, Denominator >
 比率类模板 更多...
struct  is_ratio< Ratio >
 检查类型是否为ratio 更多...
struct  ratio_equal< ratio1, ratio2 >
 检查两个比率是否相等 更多...
struct  ratio_not_equal< ratio1, ratio2 >
 检查两个比率是否不相等 更多...
struct  ratio_less< ratio1, ratio2 >
 检查第一个比率是否小于第二个比率 更多...
struct  ratio_less_equal< ratio1, ratio2 >
 检查第一个比率是否小于等于第二个比率 更多...
struct  ratio_greater< ratio1, ratio2 >
 检查第一个比率是否大于第二个比率 更多...
struct  ratio_greater_equal< ratio1, ratio2 >
 检查第一个比率是否大于等于第二个比率 更多...

类型定义

template<typename ratio1, typename ratio2>
using ratio_multiply = typename _INNER __ratio_multiply_impl<ratio1, ratio2>::type
 比率乘法类型别名
template<typename ratio1, typename ratio2>
using ratio_divide = typename _INNER __ratio_divide_impl<ratio1, ratio2>::type
 比率除法类型别名
template<typename ratio1, typename ratio2>
using ratio_add = typename _INNER ratio_add<ratio1, ratio2>::type
 比率加法类型别名
template<typename ratio1, typename ratio2>
using ratio_subtract = typename _INNER ratio_subtract<ratio1, ratio2>::type
 比率减法类型别名

详细描述

比率的主类和运算操作

类型定义说明

◆ ratio_add

template<typename ratio1, typename ratio2>
using ratio_add = typename _INNER ratio_add<ratio1, ratio2>::type

比率加法类型别名

模板参数
ratio1第一个比率
ratio2第二个比率

在文件 ratio.hpp479 行定义.

◆ ratio_divide

template<typename ratio1, typename ratio2>
using ratio_divide = typename _INNER __ratio_divide_impl<ratio1, ratio2>::type

比率除法类型别名

模板参数
ratio1被除数比率
ratio2除数比率

在文件 ratio.hpp160 行定义.

◆ ratio_multiply

template<typename ratio1, typename ratio2>
using ratio_multiply = typename _INNER __ratio_multiply_impl<ratio1, ratio2>::type

比率乘法类型别名

模板参数
ratio1第一个比率
ratio2第二个比率

在文件 ratio.hpp120 行定义.

◆ ratio_subtract

template<typename ratio1, typename ratio2>
using ratio_subtract = typename _INNER ratio_subtract<ratio1, ratio2>::type

比率减法类型别名

模板参数
ratio1被减数比率
ratio2减数比率

在文件 ratio.hpp516 行定义.