tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
compare_three_way_result.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_COMPARE_COMMON_THREE_WAY_RESULT_HPP
4#define TETL_COMPARE_COMMON_THREE_WAY_RESULT_HPP
5
8
9namespace etl {
10
11// recommended by Casey Carter
12// see also: https://github.com/microsoft/STL/pull/385#discussion_r357894054
14template <typename T, typename U = T>
17
19template <typename T, typename U = T>
21
23template <typename T, typename U>
27};
28
29} // namespace etl
30
31#endif // TETL_COMPARE_COMMON_THREE_WAY_RESULT_HPP
decltype(etl::declval< etl::remove_reference_t< T > const & >()<=> etl::declval< etl::remove_reference_t< U > const & >()) compare_three_way_result_t
Definition compare_three_way_result.hpp:15
Definition adjacent_find.hpp:8
auto declval() noexcept -> add_rvalue_reference_t< T >
compare_three_way_result_t< T, U > type
Definition compare_three_way_result.hpp:25
Definition compare_three_way_result.hpp:19