tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio_greater_equal.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_RATIO_GREATER_EQUAL_HPP
4#define TETL_RATIO_GREATER_EQUAL_HPP
5
8
9namespace etl {
10
15template <typename R1, typename R2>
16struct ratio_greater_equal : bool_constant<(R1::num * R2::den >= R2::num * R1::den)> { };
17
20template <typename R1, typename R2>
22
23} // namespace etl
24
25#endif // TETL_RATIO_GREATER_EQUAL_HPP
constexpr bool ratio_greater_equal_v
Definition ratio_greater_equal.hpp:21
Definition adjacent_find.hpp:8
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
Compares two ratio objects for equality at compile-time. If the ratio R1 is greater than or equal to ...
Definition ratio_greater_equal.hpp:16