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