tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
named_functions.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_COMPARE_NAMED_FUNCTIONS_HPP
4#define TETL_COMPARE_NAMED_FUNCTIONS_HPP
5
7
8namespace etl {
9
11[[nodiscard]] constexpr auto is_eq(partial_ordering cmp) noexcept -> bool { return cmp == nullptr; }
12
14[[nodiscard]] constexpr auto is_neq(partial_ordering cmp) noexcept -> bool { return cmp != nullptr; }
15
17[[nodiscard]] constexpr auto is_lt(partial_ordering cmp) noexcept -> bool { return cmp < nullptr; }
18
20[[nodiscard]] constexpr auto is_lteq(partial_ordering cmp) noexcept -> bool { return cmp <= nullptr; }
21
23[[nodiscard]] constexpr auto is_gt(partial_ordering cmp) noexcept -> bool { return cmp > nullptr; }
24
26[[nodiscard]] constexpr auto is_gteq(partial_ordering cmp) noexcept -> bool { return cmp >= nullptr; }
27
28} // namespace etl
29
30#endif // TETL_COMPARE_NAMED_FUNCTIONS_HPP
constexpr auto is_lt(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:17
constexpr auto is_neq(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:14
constexpr auto is_gteq(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:26
constexpr auto is_eq(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:11
constexpr auto is_lteq(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:20
constexpr auto is_gt(partial_ordering cmp) noexcept -> bool
Definition named_functions.hpp:23
Definition adjacent_find.hpp:8
Definition partial_ordering.hpp:12