summaryrefslogtreecommitdiff
path: root/libcxx/src/algorithm.cpp
diff options
context:
space:
mode:
authorKonstantin Varlamov <varconst@apple.com>2022-06-16 15:20:53 -0700
committerKonstantin Varlamov <varconst@apple.com>2022-06-16 15:21:06 -0700
commitff3989e6ae740a9b3adaad0e2bf7691ffd6dad12 (patch)
tree0f0b28bb899a2266e8c07a477053bf26f39567a5 /libcxx/src/algorithm.cpp
parentdba2ff500d5b29f2d18b93aed5caa5b4ef7c94dd (diff)
downloadllvm-ff3989e6ae740a9b3adaad0e2bf7691ffd6dad12.tar.gz
[libc++][ranges] Implement `ranges::sort`.
Differential Revision: https://reviews.llvm.org/D127557
Diffstat (limited to 'libcxx/src/algorithm.cpp')
-rw-r--r--libcxx/src/algorithm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/algorithm.cpp b/libcxx/src/algorithm.cpp
index decc8419fa83..bd47e08b3805 100644
--- a/libcxx/src/algorithm.cpp
+++ b/libcxx/src/algorithm.cpp
@@ -10,6 +10,8 @@
_LIBCPP_BEGIN_NAMESPACE_STD
+// TODO(varconst): this currently doesn't benefit `ranges::sort` because it uses `ranges::less` instead of `__less`.
+
template void __sort<__less<char>&, char*>(char*, char*, __less<char>&);
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
template void __sort<__less<wchar_t>&, wchar_t*>(wchar_t*, wchar_t*, __less<wchar_t>&);