tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio_greater.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_RATIO_GREATER_HPP
4#define TETL_RATIO_GREATER_HPP
5
8
9namespace etl {
10
15template <typename R1, typename R2>
16struct ratio_greater : bool_constant<(R1::num * R2::den > R2::num * R1::den)> { };
17
19template <typename R1, typename R2>
21
22} // namespace etl
23
24#endif // TETL_RATIO_GREATER_HPP
constexpr bool ratio_greater_v
Definition ratio_greater.hpp:20
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 the ratio R2...
Definition ratio_greater.hpp:16