[libcxx-commits] [libcxx] 5366bf5 - [libc++][NFC] Improve the synopsis of <algorithm>
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 1 10:00:34 PDT 2024
Author: Louis Dionne
Date: 2024-10-01T13:00:29-04:00
New Revision: 5366bf5b6642f826b2f69a3083a63727d9de771b
URL: https://github.com/llvm/llvm-project/commit/5366bf5b6642f826b2f69a3083a63727d9de771b
DIFF: https://github.com/llvm/llvm-project/commit/5366bf5b6642f826b2f69a3083a63727d9de771b.diff
LOG: [libc++][NFC] Improve the synopsis of <algorithm>
Added:
Modified:
libcxx/include/algorithm
Removed:
################################################################################
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 17d63ce0cf1c0f..14355d63f2901c 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -1237,9 +1237,9 @@ template <class InputIterator1, class InputIterator2>
mismatch(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2);
template <class InputIterator1, class InputIterator2>
- constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
+ constexpr pair<InputIterator1, InputIterator2>
mismatch(InputIterator1 first1, InputIterator1 last1,
- InputIterator2 first2, InputIterator2 last2); // **C++14**
+ InputIterator2 first2, InputIterator2 last2); // since C++14, constexpr in C++20
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
@@ -1247,19 +1247,19 @@ template <class InputIterator1, class InputIterator2, class BinaryPredicate>
InputIterator2 first2, BinaryPredicate pred);
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
- constexpr pair<InputIterator1, InputIterator2> // constexpr in C++20
+ constexpr pair<InputIterator1, InputIterator2>
mismatch(InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2,
- BinaryPredicate pred); // **C++14**
+ BinaryPredicate pred); // since C++14, constexpr in C++20
template <class InputIterator1, class InputIterator2>
constexpr bool // constexpr in C++20
equal(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2);
template <class InputIterator1, class InputIterator2>
- constexpr bool // constexpr in C++20
+ constexpr bool
equal(InputIterator1 first1, InputIterator1 last1,
- InputIterator2 first2, InputIterator2 last2); // **C++14**
+ InputIterator2 first2, InputIterator2 last2); // since C++14, constexpr in C++20
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
constexpr bool // constexpr in C++20
@@ -1267,10 +1267,10 @@ template <class InputIterator1, class InputIterator2, class BinaryPredicate>
InputIterator2 first2, BinaryPredicate pred);
template <class InputIterator1, class InputIterator2, class BinaryPredicate>
- constexpr bool // constexpr in C++20
+ constexpr bool
equal(InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2,
- BinaryPredicate pred); // **C++14**
+ BinaryPredicate pred); // since C++14, constexpr in C++20
template<class ForwardIterator1, class ForwardIterator2>
constexpr bool // constexpr in C++20
@@ -1278,9 +1278,9 @@ template<class ForwardIterator1, class ForwardIterator2>
ForwardIterator2 first2);
template<class ForwardIterator1, class ForwardIterator2>
- constexpr bool // constexpr in C++20
+ constexpr bool
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
- ForwardIterator2 first2, ForwardIterator2 last2); // **C++14**
+ ForwardIterator2 first2, ForwardIterator2 last2); // since C++14, constexpr in C++20
template<class ForwardIterator1, class ForwardIterator2, class BinaryPredicate>
constexpr bool // constexpr in C++20
@@ -1288,10 +1288,10 @@ template<class ForwardIterator1, class ForwardIterator2, class BinaryPredicate>
ForwardIterator2 first2, BinaryPredicate pred);
template<class ForwardIterator1, class ForwardIterator2, class BinaryPredicate>
- constexpr bool // constexpr in C++20
+ constexpr bool
is_permutation(ForwardIterator1 first1, ForwardIterator1 last1,
ForwardIterator2 first2, ForwardIterator2 last2,
- BinaryPredicate pred); // **C++14**
+ BinaryPredicate pred); // since C++14, constexpr in C++20
template <class ForwardIterator1, class ForwardIterator2>
constexpr ForwardIterator1 // constexpr in C++20
More information about the libcxx-commits
mailing list