[libcxx-commits] [PATCH] D97862: [libc++] Introduce __identity_t<T>

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 3 08:22:13 PST 2021


Quuxplusone added inline comments.


================
Comment at: libcxx/include/type_traits:4046
 {
-    typedef typename __apply_cv<_Tp, _Rp>::type& type;
+    using type = typename __apply_cv<_Tp, _Rp>::type&;
 };
----------------
(The first diff here is to eliminate a "noise" use of `__identity` where IMHO it's not really serving any purpose. The second and third diffs are for consistency of style between `__result_of_mp` and `__result_of_mdp`.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97862



More information about the libcxx-commits mailing list