Use LLVM_DELETED_FUNCTION rather than '// do not implement' comments.
[oota-llvm.git] / include / llvm / Support / type_traits.h
index f9306395fce3b96c1a67b832941bf7527d17202a..db43ccfece1452d4c948b88d8222d729c46b4478 100644 (file)
@@ -145,6 +145,10 @@ template <typename T> struct is_pointer<T* const> : true_type {};
 template <typename T> struct is_pointer<T* volatile> : true_type {};
 template <typename T> struct is_pointer<T* const volatile> : true_type {};
 
+/// \brief Metafunction that determines wheather the given type is a reference.
+template <typename T> struct is_reference : false_type {};
+template <typename T> struct is_reference<T&> : true_type {};
+
 /// \brief Metafunction that determines whether the given type is either an
 /// integral type or an enumeration type.
 ///