File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 2424 - { cxx: clang++-16, std: 17, container: "clang:16" }
2525 - { cxx: clang++-16, std: 20, container: "clang:16" }
2626 - { cxx: clang++-16, std: 23, container: "clang:16" }
27+ - { cxx: g++-13, std: 14, container: "gcc:13" }
28+ - { cxx: g++-13, std: 17, container: "gcc:13" }
29+ - { cxx: g++-13, std: 20, container: "gcc:13" }
2730 - { cxx: g++-12, std: 14, container: "gcc:12" }
2831 - { cxx: g++-12, std: 17, container: "gcc:12" }
2932 - { cxx: g++-12, std: 20, container: "gcc:12" }
Original file line number Diff line number Diff line change 1+ #ifndef STRONG_TYPE_STRONG_ORDERING_HPP
2+ #define STRONG_TYPE_STRONG_ORDERING_HPP
3+
4+ #include < compare>
5+
6+ #include " type.hpp"
7+
8+ namespace strong
9+ {
10+ struct strong_ordering
11+ {
12+ template <typename T>
13+ class modifier ;
14+ };
15+
16+ template <typename T, typename Tag, typename ... M>
17+ class strong_ordering ::modifier<::strong::type<T, Tag, M...>>
18+ {
19+ using type = ::strong::type<T, Tag, M...>;
20+ public:
21+ STRONG_NODISCARD
22+ friend
23+ STRONG_CONSTEXPR
24+ std::strong_ordering operator <=>(const type& lh, const type& rh) noexcept
25+ {
26+ return value_of (lh) <=> alue_of (rh);
27+ }
28+ };
29+ }
30+
31+ #endif // STRONG_TYPE_STRONG_ORDERING_HPP
You can’t perform that action at this time.
0 commit comments