[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:25 PDT 2024
================
@@ -46,6 +52,10 @@ struct __totally_ordered_less_tag {};
template <class _CanonicalTag, class _Operation, class... _Args>
inline const bool __desugars_to_v = false;
+template <class _Operation, class... _Args>
+inline const bool __desugars_to_v<__less_tag, _Operation, _Args...> =
+ __desugars_to_v<__totally_ordered_less_tag, _Operation, _Args...>;
----------------
ldionne wrote:
I think I would remove this since it's effectively not used. In the future, if we want to create a real "hierarchy" of such tags, then it would make sense to re-add it.
https://github.com/llvm/llvm-project/pull/104902
More information about the libcxx-commits
mailing list