[libcxx-commits] [libcxx] [libc++] Simplify the implementation of std::sort a bit (PR #104902)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 22 08:52:26 PDT 2024
================
@@ -102,6 +102,9 @@ inline const bool __desugars_to_v<__equal_tag, ranges::equal_to, _Tp, _Up> = tru
template <class _Tp, class _Up>
inline const bool __desugars_to_v<__totally_ordered_less_tag, ranges::less, _Tp, _Up> = true;
+template <class _Tp, class _Up>
+inline const bool __desugars_to_v<__greater_tag, ranges::greater, _Tp, _Up> = true;
----------------
ldionne wrote:
I think I would also specialize for `__less_tag` here for consistency and simplicity.
https://github.com/llvm/llvm-project/pull/104902
More information about the libcxx-commits
mailing list