tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio_not_equal.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_RATIO_NOT_EQUAL_HPP
5
#
define
TETL_RATIO_NOT_EQUAL_HPP
6
7
#
include
<
etl
/
_ratio
/
ratio
.
hpp
>
8
#
include
<
etl
/
_type_traits
/
bool_constant
.
hpp
>
9
10
namespace
etl
{
11
12
/// \brief Compares two ratio objects for equality at compile-time. If the
13
/// ratios R1 and R2 are not equal, provides the member constant value equal
14
/// true. Otherwise, value is false.
15
/// \ingroup ratio
16
template
<
typename
R1,
typename
R2>
17
struct
ratio_not_equal
:
bool_constant
<!
ratio_equal_v
<
R1
,
R2
>> { };
18
19
/// \ingroup ratio
20
template
<
typename
R1
,
typename
R2
>
21
inline
constexpr
bool
ratio_not_equal_v
=
ratio_not_equal
<
R1
,
R2
>::
value
;
22
23
}
// namespace etl
24
25
#
endif
// TETL_RATIO_NOT_EQUAL_HPP
etl::ratio_not_equal_v
constexpr bool ratio_not_equal_v
Definition
ratio_not_equal.hpp:21
etl
Definition
adjacent_find.hpp:9
etl::ratio_not_equal
Compares two ratio objects for equality at compile-time. If the ratios R1 and R2 are not equal,...
Definition
ratio_not_equal.hpp:17
include
etl
_ratio
ratio_not_equal.hpp
Generated on Sun Sep 7 2025 19:15:16 for tetl by
1.9.8