tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
cmp_greater_equal.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_UTILITY_CMP_GREATER_EQUAL_HPP
4#define TETL_UTILITY_CMP_GREATER_EQUAL_HPP
5
8
9namespace etl {
10
19template <builtin_integer T, builtin_integer U>
20[[nodiscard]] constexpr auto cmp_greater_equal(T t, U u) noexcept -> bool
21{
22 return not etl::cmp_less(t, u);
23}
24
25} // namespace etl
26
27#endif // TETL_UTILITY_CMP_GREATER_EQUAL_HPP
constexpr auto cmp_greater_equal(T t, U u) noexcept -> bool
Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed inte...
Definition cmp_greater_equal.hpp:20
constexpr auto cmp_less(T t, U u) noexcept -> bool
Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed inte...
Definition cmp_less.hpp:21
Definition adjacent_find.hpp:8