[libcxx] r263659 - Add __unconstref for future use

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 13:32:07 PDT 2016


Author: ericwf
Date: Wed Mar 16 15:32:07 2016
New Revision: 263659

URL: http://llvm.org/viewvc/llvm-project?rev=263659&view=rev
Log:
Add __unconstref for future use

Modified:
    libcxx/trunk/include/type_traits

Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=263659&r1=263658&r2=263659&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Wed Mar 16 15:32:07 2016
@@ -1072,6 +1072,11 @@ struct __uncvref  {
     typedef typename remove_cv<typename remove_reference<_Tp>::type>::type type;
 };
 
+template <class _Tp>
+struct __unconstref {
+    typedef typename remove_const<typename remove_reference<_Tp>::type>::type type;
+};
+
 // __is_same_uncvref
 
 template <class _Tp, class _Up>




More information about the cfe-commits mailing list