If the ratio R1
is greater than or equal to the ratio R2
, provides the member constant value equal true. Otherwise, value is false.
template< class R1, class R2 >
constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value;
#include <ratio> int main() { static_assert(std::ratio_greater_equal< std::ratio<2, 3>, std::ratio<2, 3>>::value, "2/3 >= 2/3"); // since C++17 static_assert(std::ratio_greater_equal_v< std::ratio<999'998, 999'999>, std::ratio<999'997, 999'998>>); }[edit] See also compares two
ratio
objects for equality at compile-time
ratio
objects for less than at compile-time
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4