Skip to content

Commit 045f6e9

Browse files
burblebeetkoeppe
authored andcommitted
LWG3865 Sorting a range of pairs
1 parent b71cc32 commit 045f6e9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/utilities.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@
136136
};
137137

138138
// \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>&);
145145

146146
template<class T1, class T2>
147147
constexpr void swap(pair<T1, T2>& x, pair<T1, T2>& y) noexcept(noexcept(x.swap(y)));
@@ -1267,8 +1267,8 @@
12671267

12681268
\indexlibrarymember{operator==}{pair}%
12691269
\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);
12721272
\end{itemdecl}
12731273

12741274
\begin{itemdescr}
@@ -1284,10 +1284,10 @@
12841284

12851285
\indexlibrarymember{operator<=>}{pair}%
12861286
\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);
12911291
\end{itemdecl}
12921292

12931293
\begin{itemdescr}

0 commit comments

Comments
 (0)