Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
blaze
util
typetraits
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 >
69
struct
AddReference
70
{
71
public
:
72
//**********************************************************************************************
74
typedef
typename
boost::add_reference<T>::type Type;
76
//**********************************************************************************************
77
};
78
//*************************************************************************************************
79
80
}
// namespace blaze
81
82
#endif
blaze::AddReference
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
blaze
Namespace of the Blaze C++ math library.
Definition:
Blaze.h:57
Generated on Thu Jul 2 2015 04:55:17 by
1.8.9.1