[libcxx] r258491 - Add __uncvref type for use in later patches

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 21 22:25:47 PST 2016


Author: ericwf
Date: Fri Jan 22 00:25:47 2016
New Revision: 258491

URL: http://llvm.org/viewvc/llvm-project?rev=258491&view=rev
Log:
Add __uncvref type for use in later patches

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=258491&r1=258490&r2=258491&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Fri Jan 22 00:25:47 2016
@@ -1084,6 +1084,13 @@ declval();
 
 #endif  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
 
+// __uncvref
+
+template <class _Tp>
+struct __uncvref  {
+    typedef typename remove_cv<typename remove_reference<_Tp>::type>::type type;
+};
+
 struct __any
 {
     __any(...);




More information about the cfe-commits mailing list