[libcxx-commits] [PATCH] D80899: [libcxx] adds std::compare_three_way

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 23 01:01:00 PDT 2020


curdeius added inline comments.


================
Comment at: libcxx/include/functional:834
+    constexpr auto operator()(_T1&& __t, _T2&& __u) const
+    _NOEXCEPT_(noexcept(_VSTD::forward<_T1>(__t) <=> _VSTD::forward<_T2>(__u)))
+    -> decltype        (_VSTD::forward<_T1>(__t) <=> _VSTD::forward<_T2>(__u))
----------------
I think you can use `noexcept` instead of `_NOEXCEPT_` as it's always available in C++20.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80899/new/

https://reviews.llvm.org/D80899





More information about the libcxx-commits mailing list