|
136 | 136 | };
|
137 | 137 |
|
138 | 138 | // \ref{pairs.spec}, pair specialized algorithms
|
139 |
| - template<class T1, class T2> |
140 |
| - constexpr bool operator==(const pair<T1, T2>&, const pair<T1, T2>&); |
141 |
| - template<class T1, class T2> |
142 |
| - constexpr common_comparison_category_t<@\placeholder{synth-three-way-result}@<T1>, |
143 |
| - @\placeholder{synth-three-way-result}@<T2>> |
144 |
| - operator<=>(const pair<T1, T2>&, const pair<T1, T2>&); |
| 139 | + template<class T1, class T2, class U1, class U2> |
| 140 | + constexpr bool operator==(const pair<T1, T2>&, const pair<U1, U2>&); |
| 141 | + template<class T1, class T2, class U1, class U2> |
| 142 | + constexpr common_comparison_category_t<@\placeholder{synth-three-way-result}@<T1, U1>, |
| 143 | + @\placeholder{synth-three-way-result}@<T2, U2>> |
| 144 | + operator<=>(const pair<T1, T2>&, const pair<U1, U2>&); |
145 | 145 |
|
146 | 146 | template<class T1, class T2>
|
147 | 147 | constexpr void swap(pair<T1, T2>& x, pair<T1, T2>& y) noexcept(noexcept(x.swap(y)));
|
|
1267 | 1267 |
|
1268 | 1268 | \indexlibrarymember{operator==}{pair}%
|
1269 | 1269 | \begin{itemdecl}
|
1270 |
| -template<class T1, class T2> |
1271 |
| - constexpr bool operator==(const pair<T1, T2>& x, const pair<T1, T2>& y); |
| 1270 | +template<class T1, class T2, class U1, class U2> |
| 1271 | + constexpr bool operator==(const pair<T1, T2>& x, const pair<U1, U2>& y); |
1272 | 1272 | \end{itemdecl}
|
1273 | 1273 |
|
1274 | 1274 | \begin{itemdescr}
|
|
1284 | 1284 |
|
1285 | 1285 | \indexlibrarymember{operator<=>}{pair}%
|
1286 | 1286 | \begin{itemdecl}
|
1287 |
| -template<class T1, class T2> |
1288 |
| - constexpr common_comparison_category_t<@\placeholder{synth-three-way-result}@<T1>, |
1289 |
| - @\placeholder{synth-three-way-result}@<T2>> |
1290 |
| - operator<=>(const pair<T1, T2>& x, const pair<T1, T2>& y); |
| 1287 | +template<class T1, class T2, class U1, class U2> |
| 1288 | + constexpr common_comparison_category_t<@\placeholder{synth-three-way-result}@<T1, U1>, |
| 1289 | + @\placeholder{synth-three-way-result}@<T2, U2>> |
| 1290 | + operator<=>(const pair<T1, T2>& x, const pair<U1, U2>& y); |
1291 | 1291 | \end{itemdecl}
|
1292 | 1292 |
|
1293 | 1293 | \begin{itemdescr}
|
|
0 commit comments