| 1 |
//===----------------------------------------------------------------------===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
// UNSUPPORTED: c++03, c++11, c++14, c++17 |
| 10 |
|
| 11 |
// template<class T> |
| 12 |
// concept totally_ordered_with; |
| 13 |
|
| 14 |
#include <concepts> |
| 15 |
|
| 16 |
#include <array> |
| 17 |
#include <deque> |
| 18 |
#include <forward_list> |
| 19 |
#include <list> |
| 20 |
#include <map> |
| 21 |
#include <memory> |
| 22 |
#include <optional> |
| 23 |
#include <set> |
| 24 |
#include <unordered_map> |
| 25 |
#include <unordered_set> |
| 26 |
#include <vector> |
| 27 |
|
| 28 |
#include "compare_types.h" |
| 29 |
#include "test_macros.h" |
| 30 |
|
| 31 |
template <class T, class U> |
| 32 |
constexpr bool check_totally_ordered_with() noexcept { |
| 33 |
constexpr bool result = std::totally_ordered_with<T, U>; |
| 34 |
static_assert(std::totally_ordered_with<U, T> == result); |
| 35 |
static_assert(std::totally_ordered_with<T, U const> == result); |
| 36 |
static_assert(std::totally_ordered_with<T const, U const> == result); |
| 37 |
static_assert(std::totally_ordered_with<T, U const&> == result); |
| 38 |
static_assert(std::totally_ordered_with<T const, U const&> == result); |
| 39 |
static_assert(std::totally_ordered_with<T&, U const> == result); |
| 40 |
static_assert(std::totally_ordered_with<T const&, U const> == result); |
| 41 |
static_assert(std::totally_ordered_with<T&, U const&> == result); |
| 42 |
static_assert(std::totally_ordered_with<T const&, U const&> == result); |
| 43 |
static_assert(std::totally_ordered_with<T, U const&&> == result); |
| 44 |
static_assert(std::totally_ordered_with<T const, U const&&> == result); |
| 45 |
static_assert(std::totally_ordered_with<T&, U const&&> == result); |
| 46 |
static_assert(std::totally_ordered_with<T const&, U const&&> == result); |
| 47 |
static_assert(std::totally_ordered_with<T&&, U const> == result); |
| 48 |
static_assert(std::totally_ordered_with<T const&&, U const> == result); |
| 49 |
static_assert(std::totally_ordered_with<T&&, U const&> == result); |
| 50 |
static_assert(std::totally_ordered_with<T const&&, U const&> == result); |
| 51 |
static_assert(std::totally_ordered_with<T&&, U const&&> == result); |
| 52 |
static_assert(std::totally_ordered_with<T const&&, U const&&> == result); |
| 53 |
return result; |
| 54 |
} |
| 55 |
|
| 56 |
namespace fundamentals { |
| 57 |
static_assert(check_totally_ordered_with<int, int>()); |
| 58 |
static_assert(check_totally_ordered_with<int, bool>()); |
| 59 |
static_assert(check_totally_ordered_with<int, char>()); |
| 60 |
static_assert(check_totally_ordered_with<int, wchar_t>()); |
| 61 |
static_assert(check_totally_ordered_with<int, double>()); |
| 62 |
static_assert(!check_totally_ordered_with<int, int*>()); |
| 63 |
static_assert(!check_totally_ordered_with<int, int[5]>()); |
| 64 |
static_assert(!check_totally_ordered_with<int, int (*)()>()); |
| 65 |
static_assert(!check_totally_ordered_with<int, int (&)()>()); |
| 66 |
|
| 67 |
struct S {}; |
| 68 |
static_assert(!check_totally_ordered_with<int, int S::*>()); |
| 69 |
static_assert(!check_totally_ordered_with<int, int (S::*)()>()); |
| 70 |
static_assert(!check_totally_ordered_with<int, int (S::*)() noexcept>()); |
| 71 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const>()); |
| 72 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const noexcept>()); |
| 73 |
static_assert(!check_totally_ordered_with<int, int (S::*)() volatile>()); |
| 74 |
static_assert(!check_totally_ordered_with<int, int (S::*)() volatile noexcept>()); |
| 75 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const volatile>()); |
| 76 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const volatile noexcept>()); |
| 77 |
static_assert(!check_totally_ordered_with<int, int (S::*)() &>()); |
| 78 |
static_assert(!check_totally_ordered_with<int, int (S::*)() & noexcept>()); |
| 79 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const&>()); |
| 80 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const & noexcept>()); |
| 81 |
static_assert(!check_totally_ordered_with<int, int (S::*)() volatile&>()); |
| 82 |
static_assert(!check_totally_ordered_with<int, int (S::*)() volatile & noexcept>()); |
| 83 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const volatile&>()); |
| 84 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const volatile & noexcept>()); |
| 85 |
static_assert(!check_totally_ordered_with<int, int (S::*)() &&>()); |
| 86 |
static_assert(!check_totally_ordered_with < int, int (S::*)() && noexcept > ()); |
| 87 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const&&>()); |
| 88 |
static_assert(!check_totally_ordered_with < int, int (S::*)() const&& noexcept > ()); |
| 89 |
static_assert(!check_totally_ordered_with<int, int (S::*)() volatile&&>()); |
| 90 |
static_assert(!check_totally_ordered_with < int, int (S::*)() volatile&& noexcept > ()); |
| 91 |
static_assert(!check_totally_ordered_with<int, int (S::*)() const volatile&&>()); |
| 92 |
static_assert(!check_totally_ordered_with < int, int (S::*)() const volatile&& noexcept > ()); |
| 93 |
|
| 94 |
static_assert(check_totally_ordered_with<int*, int*>()); |
| 95 |
static_assert(check_totally_ordered_with<int*, int[5]>()); |
| 96 |
static_assert(!check_totally_ordered_with<int*, int (*)()>()); |
| 97 |
static_assert(!check_totally_ordered_with<int*, int (&)()>()); |
| 98 |
static_assert(!check_totally_ordered_with<int*, int (S::*)()>()); |
| 99 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() noexcept>()); |
| 100 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const>()); |
| 101 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const noexcept>()); |
| 102 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() volatile>()); |
| 103 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() volatile noexcept>()); |
| 104 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const volatile>()); |
| 105 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const volatile noexcept>()); |
| 106 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() &>()); |
| 107 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() & noexcept>()); |
| 108 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const&>()); |
| 109 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const & noexcept>()); |
| 110 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() volatile&>()); |
| 111 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() volatile & noexcept>()); |
| 112 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const volatile&>()); |
| 113 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const volatile & noexcept>()); |
| 114 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() &&>()); |
| 115 |
static_assert(!check_totally_ordered_with < int*, int (S::*)() && noexcept > ()); |
| 116 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const&&>()); |
| 117 |
static_assert(!check_totally_ordered_with < int*, int (S::*)() const&& noexcept > ()); |
| 118 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() volatile&&>()); |
| 119 |
static_assert(!check_totally_ordered_with < int*, int (S::*)() volatile&& noexcept > ()); |
| 120 |
static_assert(!check_totally_ordered_with<int*, int (S::*)() const volatile&&>()); |
| 121 |
static_assert(!check_totally_ordered_with < int*, int (S::*)() const volatile&& noexcept > ()); |
| 122 |
|
| 123 |
static_assert(check_totally_ordered_with<int[5], int[5]>()); |
| 124 |
static_assert(!check_totally_ordered_with<int[5], int (*)()>()); |
| 125 |
static_assert(!check_totally_ordered_with<int[5], int (&)()>()); |
| 126 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)()>()); |
| 127 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() noexcept>()); |
| 128 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const>()); |
| 129 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const noexcept>()); |
| 130 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() volatile>()); |
| 131 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() volatile noexcept>()); |
| 132 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const volatile>()); |
| 133 |
static_assert(!check_totally_ordered_with< int[5], int (S::*)() const volatile noexcept>()); |
| 134 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() &>()); |
| 135 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() & noexcept>()); |
| 136 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const&>()); |
| 137 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const & noexcept>()); |
| 138 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() volatile&>()); |
| 139 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() volatile & noexcept>()); |
| 140 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const volatile&>()); |
| 141 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const volatile & noexcept>()); |
| 142 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() &&>()); |
| 143 |
static_assert(!check_totally_ordered_with < int[5], int (S::*)() && noexcept > ()); |
| 144 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const&&>()); |
| 145 |
static_assert(!check_totally_ordered_with < int[5], int (S::*)() const&& noexcept > ()); |
| 146 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() volatile&&>()); |
| 147 |
static_assert(!check_totally_ordered_with < int[5], int (S::*)() volatile&& noexcept > ()); |
| 148 |
static_assert(!check_totally_ordered_with<int[5], int (S::*)() const volatile&&>()); |
| 149 |
static_assert(!check_totally_ordered_with < int[5], int (S::*)() const volatile&& noexcept > ()); |
| 150 |
|
| 151 |
static_assert(check_totally_ordered_with<int (*)(), int (*)()>()); |
| 152 |
static_assert(check_totally_ordered_with<int (*)(), int (&)()>()); |
| 153 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)()>()); |
| 154 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() noexcept>()); |
| 155 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const>()); |
| 156 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const noexcept>()); |
| 157 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() volatile>()); |
| 158 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() volatile noexcept>()); |
| 159 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const volatile>()); |
| 160 |
static_assert(!check_totally_ordered_with< int (*)(), int (S::*)() const volatile noexcept>()); |
| 161 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() &>()); |
| 162 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() & noexcept>()); |
| 163 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const&>()); |
| 164 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const & noexcept>()); |
| 165 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() volatile&>()); |
| 166 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() volatile & noexcept>()); |
| 167 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const volatile&>()); |
| 168 |
static_assert(!check_totally_ordered_with< int (*)(), int (S::*)() const volatile & noexcept>()); |
| 169 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() &&>()); |
| 170 |
static_assert(!check_totally_ordered_with < int (*)(), int (S::*)() && noexcept > ()); |
| 171 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const&&>()); |
| 172 |
static_assert(!check_totally_ordered_with < int (*)(), int (S::*)() const&& noexcept > ()); |
| 173 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() volatile&&>()); |
| 174 |
static_assert(!check_totally_ordered_with < int (*)(), int (S::*)() volatile&& noexcept > ()); |
| 175 |
static_assert(!check_totally_ordered_with<int (*)(), int (S::*)() const volatile&&>()); |
| 176 |
static_assert(!check_totally_ordered_with < int (*)(), int (S::*)() const volatile&& noexcept > ()); |
| 177 |
|
| 178 |
static_assert(check_totally_ordered_with<int (&)(), int (&)()>()); |
| 179 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)()>()); |
| 180 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() noexcept>()); |
| 181 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const>()); |
| 182 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const noexcept>()); |
| 183 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() volatile>()); |
| 184 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() volatile noexcept>()); |
| 185 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const volatile>()); |
| 186 |
static_assert(!check_totally_ordered_with< int (&)(), int (S::*)() const volatile noexcept>()); |
| 187 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() &>()); |
| 188 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() & noexcept>()); |
| 189 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const&>()); |
| 190 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const & noexcept>()); |
| 191 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() volatile&>()); |
| 192 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() volatile & noexcept>()); |
| 193 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const volatile&>()); |
| 194 |
static_assert(!check_totally_ordered_with< int (&)(), int (S::*)() const volatile & noexcept>()); |
| 195 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() &&>()); |
| 196 |
static_assert(!check_totally_ordered_with < int (&)(), int (S::*)() && noexcept > ()); |
| 197 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const&&>()); |
| 198 |
static_assert(!check_totally_ordered_with < int (&)(), int (S::*)() const&& noexcept > ()); |
| 199 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() volatile&&>()); |
| 200 |
static_assert(!check_totally_ordered_with < int (&)(), int (S::*)() volatile&& noexcept > ()); |
| 201 |
static_assert(!check_totally_ordered_with<int (&)(), int (S::*)() const volatile&&>()); |
| 202 |
static_assert(!check_totally_ordered_with < int (&)(), int (S::*)() const volatile&& noexcept > ()); |
| 203 |
|
| 204 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)()>()); |
| 205 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() noexcept>()); |
| 206 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const>()); |
| 207 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const noexcept>()); |
| 208 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() volatile>()); |
| 209 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() volatile noexcept>()); |
| 210 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const volatile>()); |
| 211 |
static_assert(!check_totally_ordered_with< int (S::*)(), int (S::*)() const volatile noexcept>()); |
| 212 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() &>()); |
| 213 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() & noexcept>()); |
| 214 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const&>()); |
| 215 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const & noexcept>()); |
| 216 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() volatile&>()); |
| 217 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() volatile & noexcept>()); |
| 218 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const volatile&>()); |
| 219 |
static_assert(!check_totally_ordered_with< int (S::*)(), int (S::*)() const volatile & noexcept>()); |
| 220 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() &&>()); |
| 221 |
static_assert(!check_totally_ordered_with < int(S::*)(), int (S::*)() && noexcept > ()); |
| 222 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const&&>()); |
| 223 |
static_assert(!check_totally_ordered_with < int(S::*)(), int (S::*)() const&& noexcept > ()); |
| 224 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() volatile&&>()); |
| 225 |
static_assert(!check_totally_ordered_with < int(S::*)(), int (S::*)() volatile&& noexcept > ()); |
| 226 |
static_assert(!check_totally_ordered_with<int (S::*)(), int (S::*)() const volatile&&>()); |
| 227 |
static_assert(!check_totally_ordered_with < int(S::*)(), int (S::*)() const volatile&& noexcept > ()); |
| 228 |
|
| 229 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() noexcept>()); |
| 230 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const>()); |
| 231 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const noexcept>()); |
| 232 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() volatile>()); |
| 233 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() volatile noexcept>()); |
| 234 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const volatile>()); |
| 235 |
static_assert(!check_totally_ordered_with< int (S::*)() noexcept, int (S::*)() const volatile noexcept>()); |
| 236 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() &>()); |
| 237 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() & noexcept>()); |
| 238 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const&>()); |
| 239 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const & noexcept>()); |
| 240 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() volatile&>()); |
| 241 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() volatile & noexcept>()); |
| 242 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const volatile&>()); |
| 243 |
static_assert(!check_totally_ordered_with< int (S::*)() noexcept, int (S::*)() const volatile & noexcept>()); |
| 244 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() &&>()); |
| 245 |
static_assert(!check_totally_ordered_with < int(S::*)() noexcept, int (S::*)() && noexcept > ()); |
| 246 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const&&>()); |
| 247 |
static_assert(!check_totally_ordered_with < int(S::*)() noexcept, int (S::*)() const&& noexcept > ()); |
| 248 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() volatile&&>()); |
| 249 |
static_assert(!check_totally_ordered_with < int(S::*)() noexcept, int (S::*)() volatile&& noexcept > ()); |
| 250 |
static_assert(!check_totally_ordered_with<int (S::*)() noexcept, int (S::*)() const volatile&&>()); |
| 251 |
static_assert(!check_totally_ordered_with < int(S::*)() noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 252 |
|
| 253 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const>()); |
| 254 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const noexcept>()); |
| 255 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() volatile>()); |
| 256 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() volatile noexcept>()); |
| 257 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const volatile>()); |
| 258 |
static_assert(!check_totally_ordered_with< int (S::*)() const, int (S::*)() const volatile noexcept>()); |
| 259 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() &>()); |
| 260 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() & noexcept>()); |
| 261 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const&>()); |
| 262 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const & noexcept>()); |
| 263 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() volatile&>()); |
| 264 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() volatile & noexcept>()); |
| 265 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const volatile&>()); |
| 266 |
static_assert(!check_totally_ordered_with< int (S::*)() const, int (S::*)() const volatile & noexcept>()); |
| 267 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() &&>()); |
| 268 |
static_assert(!check_totally_ordered_with < int(S::*)() const, int (S::*)() && noexcept > ()); |
| 269 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const&&>()); |
| 270 |
static_assert(!check_totally_ordered_with < int(S::*)() const, int (S::*)() const&& noexcept > ()); |
| 271 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() volatile&&>()); |
| 272 |
static_assert(!check_totally_ordered_with < int(S::*)() const, int (S::*)() volatile&& noexcept > ()); |
| 273 |
static_assert(!check_totally_ordered_with<int (S::*)() const, int (S::*)() const volatile&&>()); |
| 274 |
static_assert(!check_totally_ordered_with < int(S::*)() const, int (S::*)() const volatile&& noexcept > ()); |
| 275 |
|
| 276 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const noexcept>()); |
| 277 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() volatile>()); |
| 278 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() volatile noexcept>()); |
| 279 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const volatile>()); |
| 280 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const volatile noexcept>()); |
| 281 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() &>()); |
| 282 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() & noexcept>()); |
| 283 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const&>()); |
| 284 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const & noexcept>()); |
| 285 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() volatile&>()); |
| 286 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() volatile & noexcept>()); |
| 287 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const volatile&>()); |
| 288 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const volatile & noexcept>()); |
| 289 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() &&>()); |
| 290 |
static_assert(!check_totally_ordered_with < int(S::*)() const noexcept, int (S::*)() && noexcept > ()); |
| 291 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const&&>()); |
| 292 |
static_assert(!check_totally_ordered_with < int(S::*)() const noexcept, int (S::*)() const&& noexcept > ()); |
| 293 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() volatile&&>()); |
| 294 |
static_assert(!check_totally_ordered_with < int(S::*)() const noexcept, int (S::*)() volatile&& noexcept > ()); |
| 295 |
static_assert(!check_totally_ordered_with<int (S::*)() const noexcept, int (S::*)() const volatile&&>()); |
| 296 |
static_assert(!check_totally_ordered_with < int(S::*)() const noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 297 |
|
| 298 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() volatile>()); |
| 299 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() volatile noexcept>()); |
| 300 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const volatile>()); |
| 301 |
static_assert(!check_totally_ordered_with< int (S::*)() volatile, int (S::*)() const volatile noexcept>()); |
| 302 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() &>()); |
| 303 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() & noexcept>()); |
| 304 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const&>()); |
| 305 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const & noexcept>()); |
| 306 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() volatile&>()); |
| 307 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() volatile & noexcept>()); |
| 308 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const volatile&>()); |
| 309 |
static_assert(!check_totally_ordered_with< int (S::*)() volatile, int (S::*)() const volatile & noexcept>()); |
| 310 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() &&>()); |
| 311 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile, int (S::*)() && noexcept > ()); |
| 312 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const&&>()); |
| 313 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile, int (S::*)() const&& noexcept > ()); |
| 314 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() volatile&&>()); |
| 315 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile, int (S::*)() volatile&& noexcept > ()); |
| 316 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile, int (S::*)() const volatile&&>()); |
| 317 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile, int (S::*)() const volatile&& noexcept > ()); |
| 318 |
|
| 319 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() volatile noexcept>()); |
| 320 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const volatile>()); |
| 321 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const volatile noexcept>()); |
| 322 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() &>()); |
| 323 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() & noexcept>()); |
| 324 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const&>()); |
| 325 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const & noexcept>()); |
| 326 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() volatile&>()); |
| 327 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() volatile & noexcept>()); |
| 328 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const volatile&>()); |
| 329 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const volatile & noexcept>()); |
| 330 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() &&>()); |
| 331 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile noexcept, int (S::*)() && noexcept > ()); |
| 332 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const&&>()); |
| 333 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile noexcept, int (S::*)() const&& noexcept > ()); |
| 334 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() volatile&&>()); |
| 335 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile noexcept, int (S::*)() volatile&& noexcept > ()); |
| 336 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile noexcept, int (S::*)() const volatile&&>()); |
| 337 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 338 |
|
| 339 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const volatile>()); |
| 340 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const volatile noexcept>()); |
| 341 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() &>()); |
| 342 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() & noexcept>()); |
| 343 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const&>()); |
| 344 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const & noexcept>()); |
| 345 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() volatile&>()); |
| 346 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() volatile & noexcept>()); |
| 347 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const volatile&>()); |
| 348 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const volatile & noexcept>()); |
| 349 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() &&>()); |
| 350 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile, int (S::*)() && noexcept > ()); |
| 351 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const&&>()); |
| 352 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile, int (S::*)() const&& noexcept > ()); |
| 353 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() volatile&&>()); |
| 354 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile, int (S::*)() volatile&& noexcept > ()); |
| 355 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile, int (S::*)() const volatile&&>()); |
| 356 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile, int (S::*)() const volatile&& noexcept > ()); |
| 357 |
|
| 358 |
static_assert( |
| 359 |
!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const volatile noexcept>()); |
| 360 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() &>()); |
| 361 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() & noexcept>()); |
| 362 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const&>()); |
| 363 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const & noexcept>()); |
| 364 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() volatile&>()); |
| 365 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() volatile & noexcept>()); |
| 366 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const volatile&>()); |
| 367 |
static_assert( |
| 368 |
!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const volatile & noexcept>()); |
| 369 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() &&>()); |
| 370 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile noexcept, int (S::*)() && noexcept > ()); |
| 371 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const&&>()); |
| 372 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile noexcept, int (S::*)() const&& noexcept > ()); |
| 373 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() volatile&&>()); |
| 374 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile noexcept, int (S::*)() volatile&& noexcept > ()); |
| 375 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile noexcept, int (S::*)() const volatile&&>()); |
| 376 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile noexcept, |
| 377 |
int (S::*)() const volatile&& noexcept > ()); |
| 378 |
|
| 379 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() &>()); |
| 380 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() & noexcept>()); |
| 381 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() const&>()); |
| 382 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() const & noexcept>()); |
| 383 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() volatile&>()); |
| 384 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() volatile & noexcept>()); |
| 385 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() const volatile&>()); |
| 386 |
static_assert(!check_totally_ordered_with< int (S::*)() &, int (S::*)() const volatile & noexcept>()); |
| 387 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() &&>()); |
| 388 |
static_assert(!check_totally_ordered_with < int(S::*)() &, int (S::*)() && noexcept > ()); |
| 389 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() const&&>()); |
| 390 |
static_assert(!check_totally_ordered_with < int(S::*)() &, int (S::*)() const&& noexcept > ()); |
| 391 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() volatile&&>()); |
| 392 |
static_assert(!check_totally_ordered_with < int(S::*)() &, int (S::*)() volatile&& noexcept > ()); |
| 393 |
static_assert(!check_totally_ordered_with<int (S::*)() &, int (S::*)() const volatile&&>()); |
| 394 |
static_assert(!check_totally_ordered_with < int(S::*)() &, int (S::*)() const volatile&& noexcept > ()); |
| 395 |
|
| 396 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() & noexcept>()); |
| 397 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const&>()); |
| 398 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const & noexcept>()); |
| 399 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() volatile&>()); |
| 400 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() volatile & noexcept>()); |
| 401 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const volatile&>()); |
| 402 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const volatile & noexcept>()); |
| 403 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() &&>()); |
| 404 |
static_assert(!check_totally_ordered_with < int(S::*)() & noexcept, int (S::*)() && noexcept > ()); |
| 405 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const&&>()); |
| 406 |
static_assert(!check_totally_ordered_with < int(S::*)() & noexcept, int (S::*)() const&& noexcept > ()); |
| 407 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() volatile&&>()); |
| 408 |
static_assert(!check_totally_ordered_with < int(S::*)() & noexcept, int (S::*)() volatile&& noexcept > ()); |
| 409 |
static_assert(!check_totally_ordered_with<int (S::*)() & noexcept, int (S::*)() const volatile&&>()); |
| 410 |
static_assert(!check_totally_ordered_with < int(S::*)() & noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 411 |
|
| 412 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() const&>()); |
| 413 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() const & noexcept>()); |
| 414 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() volatile&>()); |
| 415 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() volatile & noexcept>()); |
| 416 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() const volatile&>()); |
| 417 |
static_assert(!check_totally_ordered_with< int (S::*)() const&, int (S::*)() const volatile & noexcept>()); |
| 418 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() &&>()); |
| 419 |
static_assert(!check_totally_ordered_with < int(S::*)() const&, int (S::*)() && noexcept > ()); |
| 420 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() const&&>()); |
| 421 |
static_assert(!check_totally_ordered_with < int(S::*)() const&, int (S::*)() const&& noexcept > ()); |
| 422 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() volatile&&>()); |
| 423 |
static_assert(!check_totally_ordered_with < int(S::*)() const&, int (S::*)() volatile&& noexcept > ()); |
| 424 |
static_assert(!check_totally_ordered_with<int (S::*)() const&, int (S::*)() const volatile&&>()); |
| 425 |
static_assert(!check_totally_ordered_with < int(S::*)() const&, int (S::*)() const volatile&& noexcept > ()); |
| 426 |
|
| 427 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() const & noexcept>()); |
| 428 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() volatile&>()); |
| 429 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() volatile & noexcept>()); |
| 430 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() const volatile&>()); |
| 431 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() const volatile & noexcept>()); |
| 432 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() &&>()); |
| 433 |
static_assert(!check_totally_ordered_with < int(S::*)() const& noexcept, int (S::*)() && noexcept > ()); |
| 434 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() const&&>()); |
| 435 |
static_assert(!check_totally_ordered_with < int(S::*)() const& noexcept, int (S::*)() const&& noexcept > ()); |
| 436 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() volatile&&>()); |
| 437 |
static_assert(!check_totally_ordered_with < int(S::*)() const& noexcept, int (S::*)() volatile&& noexcept > ()); |
| 438 |
static_assert(!check_totally_ordered_with<int (S::*)() const & noexcept, int (S::*)() const volatile&&>()); |
| 439 |
static_assert(!check_totally_ordered_with < int(S::*)() const& noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 440 |
|
| 441 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() volatile&>()); |
| 442 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() volatile & noexcept>()); |
| 443 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() const volatile&>()); |
| 444 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() const volatile & noexcept>()); |
| 445 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() &&>()); |
| 446 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&, int (S::*)() && noexcept > ()); |
| 447 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() const&&>()); |
| 448 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&, int (S::*)() const&& noexcept > ()); |
| 449 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() volatile&&>()); |
| 450 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&, int (S::*)() volatile&& noexcept > ()); |
| 451 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&, int (S::*)() const volatile&&>()); |
| 452 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&, int (S::*)() const volatile&& noexcept > ()); |
| 453 |
|
| 454 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() volatile & noexcept>()); |
| 455 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() const volatile&>()); |
| 456 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() const volatile & noexcept>()); |
| 457 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() &&>()); |
| 458 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile & noexcept, int (S::*)() && noexcept > ()); |
| 459 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() const&&>()); |
| 460 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile & noexcept, int (S::*)() const&& noexcept > ()); |
| 461 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() volatile&&>()); |
| 462 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile & noexcept, int (S::*)() volatile&& noexcept > ()); |
| 463 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile & noexcept, int (S::*)() const volatile&&>()); |
| 464 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile & noexcept, |
| 465 |
int (S::*)() const volatile&& noexcept > ()); |
| 466 |
|
| 467 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() const volatile&>()); |
| 468 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() const volatile & noexcept>()); |
| 469 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() &&>()); |
| 470 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&, int (S::*)() && noexcept > ()); |
| 471 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() const&&>()); |
| 472 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&, int (S::*)() const&& noexcept > ()); |
| 473 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() volatile&&>()); |
| 474 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&, int (S::*)() volatile&& noexcept > ()); |
| 475 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&, int (S::*)() const volatile&&>()); |
| 476 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&, int (S::*)() const volatile&& noexcept > ()); |
| 477 |
|
| 478 |
static_assert( |
| 479 |
!check_totally_ordered_with<int (S::*)() const volatile & noexcept, int (S::*)() const volatile & noexcept>()); |
| 480 |
static_assert(!check_totally_ordered_with< int (S::*)() const volatile & noexcept, int (S::*)() &&>()); |
| 481 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile& noexcept, int (S::*)() && noexcept > ()); |
| 482 |
static_assert(!check_totally_ordered_with< int (S::*)() const volatile & noexcept, int (S::*)() const&&>()); |
| 483 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile& noexcept, int (S::*)() const&& noexcept > ()); |
| 484 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile & noexcept, int (S::*)() volatile&&>()); |
| 485 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile& noexcept, |
| 486 |
int (S::*)() volatile&& noexcept > ()); |
| 487 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile & noexcept, int (S::*)() const volatile&&>()); |
| 488 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile& noexcept, |
| 489 |
int (S::*)() const volatile&& noexcept > ()); |
| 490 |
|
| 491 |
static_assert(!check_totally_ordered_with<int (S::*)() &&, int (S::*)() &&>()); |
| 492 |
static_assert(!check_totally_ordered_with < int(S::*)() &&, int (S::*)() && noexcept > ()); |
| 493 |
static_assert(!check_totally_ordered_with<int (S::*)() &&, int (S::*)() const&&>()); |
| 494 |
static_assert(!check_totally_ordered_with < int(S::*)() &&, int (S::*)() const&& noexcept > ()); |
| 495 |
static_assert(!check_totally_ordered_with<int (S::*)() &&, int (S::*)() volatile&&>()); |
| 496 |
static_assert(!check_totally_ordered_with < int(S::*)() &&, int (S::*)() volatile&& noexcept > ()); |
| 497 |
static_assert(!check_totally_ordered_with<int (S::*)() &&, int (S::*)() const volatile&&>()); |
| 498 |
static_assert(!check_totally_ordered_with < int(S::*)() &&, int (S::*)() const volatile&& noexcept > ()); |
| 499 |
|
| 500 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() && noexcept > ()); |
| 501 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() const&& > ()); |
| 502 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() const&& noexcept > ()); |
| 503 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() volatile&& > ()); |
| 504 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() volatile&& noexcept > ()); |
| 505 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() const volatile&& > ()); |
| 506 |
static_assert(!check_totally_ordered_with < int(S::*)() && noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 507 |
|
| 508 |
static_assert(!check_totally_ordered_with<int (S::*)() const&&, int (S::*)() const&&>()); |
| 509 |
static_assert(!check_totally_ordered_with < int(S::*)() const&&, int (S::*)() const&& noexcept > ()); |
| 510 |
static_assert(!check_totally_ordered_with<int (S::*)() const&&, int (S::*)() volatile&&>()); |
| 511 |
static_assert(!check_totally_ordered_with < int(S::*)() const&&, int (S::*)() volatile&& noexcept > ()); |
| 512 |
static_assert(!check_totally_ordered_with<int (S::*)() const&&, int (S::*)() const volatile&&>()); |
| 513 |
static_assert(!check_totally_ordered_with < int(S::*)() const&&, int (S::*)() const volatile&& noexcept > ()); |
| 514 |
|
| 515 |
static_assert(!check_totally_ordered_with < int(S::*)() const&& noexcept, int (S::*)() const&& noexcept > ()); |
| 516 |
static_assert(!check_totally_ordered_with < int(S::*)() const&& noexcept, int (S::*)() volatile&& > ()); |
| 517 |
static_assert(!check_totally_ordered_with < int(S::*)() const&& noexcept, int (S::*)() volatile&& noexcept > ()); |
| 518 |
static_assert(!check_totally_ordered_with < int(S::*)() const&& noexcept, int (S::*)() const volatile&& > ()); |
| 519 |
static_assert(!check_totally_ordered_with < int(S::*)() const&& noexcept, int (S::*)() const volatile&& noexcept > ()); |
| 520 |
|
| 521 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&&, int (S::*)() volatile&&>()); |
| 522 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&&, int (S::*)() volatile&& noexcept > ()); |
| 523 |
static_assert(!check_totally_ordered_with<int (S::*)() volatile&&, int (S::*)() const volatile&&>()); |
| 524 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile&&, int (S::*)() const volatile&& noexcept > ()); |
| 525 |
|
| 526 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile && noexcept, int (S::*)() volatile&& noexcept > ()); |
| 527 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile && noexcept, int (S::*)() const volatile&& > ()); |
| 528 |
static_assert(!check_totally_ordered_with < int(S::*)() volatile && noexcept, |
| 529 |
int (S::*)() const volatile&& noexcept > ()); |
| 530 |
|
| 531 |
static_assert(!check_totally_ordered_with<int (S::*)() const volatile&&, int (S::*)() const volatile&&>()); |
| 532 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&&, int (S::*)() const volatile&& noexcept > ()); |
| 533 |
static_assert(!check_totally_ordered_with < int(S::*)() const volatile&& noexcept, |
| 534 |
int (S::*)() const volatile&& noexcept > ()); |
| 535 |
|
| 536 |
#if !defined(TEST_COMPILER_GCC) |
| 537 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int>()); |
| 538 |
|
| 539 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int*>()); |
| 540 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int[]>()); |
| 541 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int[5]>()); |
| 542 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (*)()>()); |
| 543 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (&)()>()); |
| 544 |
#endif |
| 545 |
|
| 546 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)()>()); |
| 547 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() noexcept>()); |
| 548 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const>()); |
| 549 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const noexcept>()); |
| 550 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() volatile>()); |
| 551 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() volatile noexcept>()); |
| 552 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const volatile>()); |
| 553 |
static_assert(!check_totally_ordered_with< std::nullptr_t, int (S::*)() const volatile noexcept>()); |
| 554 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() &>()); |
| 555 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() & noexcept>()); |
| 556 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const&>()); |
| 557 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const & noexcept>()); |
| 558 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() volatile&>()); |
| 559 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() volatile & noexcept>()); |
| 560 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const volatile&>()); |
| 561 |
static_assert(!check_totally_ordered_with< std::nullptr_t, int (S::*)() const volatile & noexcept>()); |
| 562 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() &&>()); |
| 563 |
static_assert(!check_totally_ordered_with < std::nullptr_t, int (S::*)() && noexcept > ()); |
| 564 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const&&>()); |
| 565 |
static_assert(!check_totally_ordered_with < std::nullptr_t, int (S::*)() const&& noexcept > ()); |
| 566 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() volatile&&>()); |
| 567 |
static_assert(!check_totally_ordered_with < std::nullptr_t, int (S::*)() volatile&& noexcept > ()); |
| 568 |
static_assert(!check_totally_ordered_with<std::nullptr_t, int (S::*)() const volatile&&>()); |
| 569 |
static_assert(!check_totally_ordered_with < std::nullptr_t, int (S::*)() const volatile&& noexcept > ()); |
| 570 |
|
| 571 |
static_assert(!std::equality_comparable_with<void, int>); |
| 572 |
static_assert(!std::equality_comparable_with<void, int*>); |
| 573 |
static_assert(!std::equality_comparable_with<void, std::nullptr_t>); |
| 574 |
static_assert(!std::equality_comparable_with<void, int[5]>); |
| 575 |
static_assert(!std::equality_comparable_with<void, int (*)()>); |
| 576 |
static_assert(!std::equality_comparable_with<void, int (&)()>); |
| 577 |
static_assert(!std::equality_comparable_with<void, int S::*>); |
| 578 |
static_assert(!std::equality_comparable_with<void, int (S::*)()>); |
| 579 |
static_assert(!std::equality_comparable_with<void, int (S::*)() noexcept>); |
| 580 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const>); |
| 581 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const noexcept>); |
| 582 |
static_assert(!std::equality_comparable_with<void, int (S::*)() volatile>); |
| 583 |
static_assert(!std::equality_comparable_with<void, int (S::*)() volatile noexcept>); |
| 584 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const volatile>); |
| 585 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const volatile noexcept>); |
| 586 |
static_assert(!std::equality_comparable_with<void, int (S::*)() &>); |
| 587 |
static_assert(!std::equality_comparable_with<void, int (S::*)() & noexcept>); |
| 588 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const&>); |
| 589 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const & noexcept>); |
| 590 |
static_assert(!std::equality_comparable_with<void, int (S::*)() volatile&>); |
| 591 |
static_assert(!std::equality_comparable_with<void, int (S::*)() volatile & noexcept>); |
| 592 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const volatile&>); |
| 593 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const volatile & noexcept>); |
| 594 |
static_assert(!std::equality_comparable_with<void, int (S::*)() &&>); |
| 595 |
static_assert(!std::equality_comparable_with < void, int (S::*)() && noexcept >); |
| 596 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const&&>); |
| 597 |
static_assert(!std::equality_comparable_with < void, int (S::*)() const&& noexcept >); |
| 598 |
static_assert(!std::equality_comparable_with<void, int (S::*)() volatile&&>); |
| 599 |
static_assert(!std::equality_comparable_with < void, int (S::*)() volatile&& noexcept >); |
| 600 |
static_assert(!std::equality_comparable_with<void, int (S::*)() const volatile&&>); |
| 601 |
static_assert(!std::equality_comparable_with < void, int (S::*)() const volatile&& noexcept >); |
| 602 |
} // namespace fundamentals |
| 603 |
|
| 604 |
namespace standard_types { |
| 605 |
static_assert(check_totally_ordered_with<std::array<int, 10>, std::array<int, 10> >()); |
| 606 |
static_assert(!check_totally_ordered_with<std::array<int, 10>, std::array<double, 10> >()); |
| 607 |
static_assert(check_totally_ordered_with<std::deque<int>, std::deque<int> >()); |
| 608 |
static_assert(!check_totally_ordered_with<std::deque<int>, std::vector<int> >()); |
| 609 |
static_assert(check_totally_ordered_with<std::forward_list<int>, std::forward_list<int> >()); |
| 610 |
static_assert(!check_totally_ordered_with<std::forward_list<int>, std::vector<int> >()); |
| 611 |
static_assert(check_totally_ordered_with<std::list<int>, std::list<int> >()); |
| 612 |
static_assert(!check_totally_ordered_with<std::list<int>, std::vector<int> >()); |
| 613 |
|
| 614 |
static_assert(check_totally_ordered_with<std::map<int, void*>, std::map<int, void*> >()); |
| 615 |
static_assert(!check_totally_ordered_with<std::map<int, void*>, std::vector<int> >()); |
| 616 |
static_assert(check_totally_ordered_with<std::optional<std::vector<int> >, std::optional<std::vector<int> > >()); |
| 617 |
static_assert(check_totally_ordered_with<std::optional<std::vector<int> >, std::vector<int> >()); |
| 618 |
static_assert(check_totally_ordered_with<std::vector<int>, std::vector<int> >()); |
| 619 |
static_assert(!check_totally_ordered_with<std::vector<int>, int>()); |
| 620 |
|
| 621 |
struct A {}; |
| 622 |
static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >, std::optional<std::vector<A> > >()); |
| 623 |
static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >, std::vector<A> >()); |
| 624 |
struct B {}; |
| 625 |
static_assert(!check_totally_ordered_with<std::vector<A>, std::vector<B> >()); |
| 626 |
static_assert(!check_totally_ordered_with<std::optional<A>, std::optional<B> >()); |
| 627 |
} // namespace standard_types |
| 628 |
|
| 629 |
namespace types_fit_for_purpose { |
| 630 |
static_assert(!check_totally_ordered_with<cxx20_member_eq, cxx20_member_eq>()); |
| 631 |
static_assert(!check_totally_ordered_with<cxx20_friend_eq, cxx20_friend_eq>()); |
| 632 |
static_assert(!check_totally_ordered_with<cxx20_member_eq, cxx20_friend_eq>()); |
| 633 |
|
| 634 |
static_assert(check_totally_ordered_with<member_three_way_comparable, member_three_way_comparable>()); |
| 635 |
static_assert(check_totally_ordered_with<friend_three_way_comparable, friend_three_way_comparable>()); |
| 636 |
static_assert(!check_totally_ordered_with<member_three_way_comparable, friend_three_way_comparable>()); |
| 637 |
|
| 638 |
static_assert(check_totally_ordered_with<explicit_operators, explicit_operators>()); |
| 639 |
static_assert(!check_totally_ordered_with<equality_comparable_with_ec1, equality_comparable_with_ec1>()); |
| 640 |
static_assert(check_totally_ordered_with<different_return_types, different_return_types>()); |
| 641 |
static_assert(!check_totally_ordered_with<explicit_operators, equality_comparable_with_ec1>()); |
| 642 |
static_assert(check_totally_ordered_with<explicit_operators, different_return_types>()); |
| 643 |
|
| 644 |
static_assert(!check_totally_ordered_with<one_way_eq, one_way_eq>()); |
| 645 |
static_assert(std::common_reference_with<one_way_eq const&, explicit_operators const&> && |
| 646 |
!check_totally_ordered_with<one_way_eq, explicit_operators>()); |
| 647 |
|
| 648 |
static_assert(!check_totally_ordered_with<one_way_ne, one_way_ne>()); |
| 649 |
static_assert(std::common_reference_with<one_way_ne const&, explicit_operators const&> && |
| 650 |
!check_totally_ordered_with<one_way_ne, explicit_operators>()); |
| 651 |
|
| 652 |
static_assert(check_totally_ordered_with<totally_ordered_with_others, partial_ordering_totally_ordered_with>()); |
| 653 |
static_assert(check_totally_ordered_with<totally_ordered_with_others, weak_ordering_totally_ordered_with>()); |
| 654 |
static_assert(check_totally_ordered_with<totally_ordered_with_others, strong_ordering_totally_ordered_with>()); |
| 655 |
|
| 656 |
static_assert(!check_totally_ordered_with<totally_ordered_with_others, eq_returns_explicit_bool>()); |
| 657 |
static_assert(!check_totally_ordered_with<totally_ordered_with_others, ne_returns_explicit_bool>()); |
| 658 |
static_assert(std::equality_comparable_with<totally_ordered_with_others, lt_returns_explicit_bool> && |
| 659 |
!check_totally_ordered_with<totally_ordered_with_others, lt_returns_explicit_bool>()); |
| 660 |
static_assert(std::equality_comparable_with<totally_ordered_with_others, gt_returns_explicit_bool> && |
| 661 |
!check_totally_ordered_with<totally_ordered_with_others, gt_returns_explicit_bool>()); |
| 662 |
static_assert(std::equality_comparable_with<totally_ordered_with_others, le_returns_explicit_bool> && |
| 663 |
!check_totally_ordered_with<totally_ordered_with_others, le_returns_explicit_bool>()); |
| 664 |
static_assert(std::equality_comparable_with<totally_ordered_with_others, ge_returns_explicit_bool> && |
| 665 |
!check_totally_ordered_with<totally_ordered_with_others, ge_returns_explicit_bool>()); |
| 666 |
static_assert(check_totally_ordered_with<totally_ordered_with_others, returns_true_type>()); |
| 667 |
static_assert(check_totally_ordered_with<totally_ordered_with_others, returns_int_ptr>()); |
| 668 |
|
| 669 |
static_assert(std::totally_ordered<no_lt_not_totally_ordered_with> && |
| 670 |
std::equality_comparable_with<totally_ordered_with_others, no_lt_not_totally_ordered_with> && |
| 671 |
!check_totally_ordered_with<totally_ordered_with_others, no_lt_not_totally_ordered_with>()); |
| 672 |
static_assert(std::totally_ordered<no_gt_not_totally_ordered_with> && |
| 673 |
std::equality_comparable_with<totally_ordered_with_others, no_gt_not_totally_ordered_with> && |
| 674 |
!check_totally_ordered_with<totally_ordered_with_others, no_gt_not_totally_ordered_with>()); |
| 675 |
static_assert(std::totally_ordered<no_le_not_totally_ordered_with> && |
| 676 |
std::equality_comparable_with<totally_ordered_with_others, no_le_not_totally_ordered_with> && |
| 677 |
!check_totally_ordered_with<totally_ordered_with_others, no_le_not_totally_ordered_with>()); |
| 678 |
static_assert(std::totally_ordered<no_ge_not_totally_ordered_with> && |
| 679 |
std::equality_comparable_with<totally_ordered_with_others, no_ge_not_totally_ordered_with> && |
| 680 |
!check_totally_ordered_with<totally_ordered_with_others, no_ge_not_totally_ordered_with>()); |
| 681 |
} // namespace types_fit_for_purpose |