Blaze
3.6
blaze
util
typetraits
AddConst.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ADDCONST_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ADDCONST_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <type_traits>
44
45
46
namespace
blaze
{
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
68
template
<
typename
T >
69
struct
AddConst
70
{
71
public
:
72
//**********************************************************************************************
74
using
Type =
typename
std::add_const<T>::type;
76
//**********************************************************************************************
77
};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
94
template
<
typename
T >
95
using
AddConst_t
=
typename
AddConst<T>::Type
;
96
//*************************************************************************************************
97
98
}
// namespace blaze
99
100
#endif
blaze::AddConst
Addition of a top level 'const' qualifier.The AddConst type trait adds a top level 'const' qualifier ...
Definition:
AddConst.h:69
blaze
Namespace of the Blaze C++ math library.
Definition:
Blaze.h:58
blaze::AddConst_t
typename AddConst< T >::Type AddConst_t
Auxiliary alias declaration for the AddConst type trait.The AddConst_t alias declaration provides a c...
Definition:
AddConst.h:95
Generated by
1.8.15