Skip to content

Commit 5366bf5

Browse files
committed
[libc++][NFC] Improve the synopsis of <algorithm>
1 parent a5dfccc commit 5366bf5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

libcxx/include/algorithm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,61 +1237,61 @@ template <class InputIterator1, class InputIterator2>
12371237
mismatch(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2);
12381238
12391239
template <class InputIterator1, class InputIterator2>
1240-
constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
1240+
constexpr pair<InputIterator1, InputIterator2>
12411241
mismatch(InputIterator1 first1, InputIterator1 last1,
1242-
InputIterator2 first2, InputIterator2 last2); // **C++14**
1242+
InputIterator2 first2, InputIterator2 last2); // since C++14, constexpr in C++20
12431243
12441244
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
12451245
constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
12461246
mismatch(InputIterator1 first1, InputIterator1 last1,
12471247
InputIterator2 first2, BinaryPredicate pred);
12481248
12491249
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
1250-
constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
1250+
constexpr pair<InputIterator1, InputIterator2>
12511251
mismatch(InputIterator1 first1, InputIterator1 last1,
12521252
InputIterator2 first2, InputIterator2 last2,
1253-
BinaryPredicate pred); // **C++14**
1253+
BinaryPredicate pred); // since C++14, constexpr in C++20
12541254
12551255
template <class InputIterator1, class InputIterator2>
12561256
constexpr bool // constexpr in C++20
12571257
equal(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2);
12581258
12591259
template <class InputIterator1, class InputIterator2>
1260-
constexpr bool // constexpr in C++20
1260+
constexpr bool
12611261
equal(InputIterator1 first1, InputIterator1 last1,
1262-
InputIterator2 first2, InputIterator2 last2); // **C++14**
1262+
InputIterator2 first2, InputIterator2 last2); // since C++14, constexpr in C++20
12631263
12641264
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
12651265
constexpr bool // constexpr in C++20
12661266
equal(InputIterator1 first1, InputIterator1 last1,
12671267
InputIterator2 first2, BinaryPredicate pred);
12681268
12691269
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
1270-
constexpr bool // constexpr in C++20
1270+
constexpr bool
12711271
equal(InputIterator1 first1, InputIterator1 last1,
12721272
InputIterator2 first2, InputIterator2 last2,
1273-
BinaryPredicate pred); // **C++14**
1273+
BinaryPredicate pred); // since C++14, constexpr in C++20
12741274
12751275
template<class ForwardIterator1, class ForwardIterator2>
12761276
constexpr bool // constexpr in C++20
12771277
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
12781278
ForwardIterator2 first2);
12791279
12801280
template<class ForwardIterator1, class ForwardIterator2>
1281-
constexpr bool // constexpr in C++20
1281+
constexpr bool
12821282
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
1283-
ForwardIterator2 first2, ForwardIterator2 last2); // **C++14**
1283+
ForwardIterator2 first2, ForwardIterator2 last2); // since C++14, constexpr in C++20
12841284
12851285
template<class ForwardIterator1, class ForwardIterator2, class BinaryPredicate>
12861286
constexpr bool // constexpr in C++20
12871287
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
12881288
ForwardIterator2 first2, BinaryPredicate pred);
12891289
12901290
template<class ForwardIterator1, class ForwardIterator2, class BinaryPredicate>
1291-
constexpr bool // constexpr in C++20
1291+
constexpr bool
12921292
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
12931293
ForwardIterator2 first2, ForwardIterator2 last2,
1294-
BinaryPredicate pred); // **C++14**
1294+
BinaryPredicate pred); // since C++14, constexpr in C++20
12951295
12961296
template <class ForwardIterator1, class ForwardIterator2>
12971297
constexpr ForwardIterator1 // constexpr in C++20

0 commit comments

Comments
 (0)