[libcxx-commits] [PATCH] D152753: [libc++] Refactor __debug_three_way_comp
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 12 14:45:19 PDT 2023
philnik added inline comments.
================
Comment at: libcxx/include/__algorithm/three_way_comp_ref_type.h:38-45
+
+ template <class _Tp, class _Up>
+ _LIBCPP_HIDE_FROM_ABI constexpr auto operator()(_Tp& __x, _Up& __y) {
+ auto __r = __comp_(__x, __y);
+ if constexpr (__comparison_category<decltype(__comp_(__x, __y))>)
+ __do_compare_assert(__y, __x, __r);
return __r;
----------------
I might have missed it, but I can't find any reason why we need this overload in the old threads. Do you have any reasoning for having this overload?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152753/new/
https://reviews.llvm.org/D152753
More information about the libcxx-commits
mailing list