All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddReference.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ADDREFERENCE_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ADDREFERENCE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <boost/type_traits/add_reference.hpp>
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
68 template< typename T >
70 {
71  public:
72  //**********************************************************************************************
74  typedef typename boost::add_reference<T>::type Type;
76  //**********************************************************************************************
77 };
78 //*************************************************************************************************
79 
80 } // namespace blaze
81 
82 #endif
Addition of a top level reference.In case the given type T is not a reference type, the AddReference type trait adds a top level reference to the given type T. Else the resulting type Type is T.
Definition: AddReference.h:69