std::ratio_greater_equal
Defined in header <ratio> | | |
|---|---|---|
template< class R1, class R2 > struct ratio_greater_equal : std::integral_constant; | | |
如果比率R1大于或等于该比率。R2,提供成员常量。value平等true.否则,value是false...
辅助变量模板
template< class R1, class R2 > inline constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value; | | (since C++17) |
|---|
继承自STD:积分[医]常量
成员常数
value static | true if R1::num * R2::den >= R2::num * R1::den, or equivalent expression that avoids overflow , false otherwise (public static member constant) |
|---|
成员函数
operator bool | converts the object to bool, returns value (public member function) |
|---|---|
operator() (C++14) | returns value (public member function) |
成员类型
Type | Definition |
|---|---|
value_type | bool |
type | std::integral_constant<bool, value> |
例
另见
二次
*。
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

