Blaze
3.9
blaze
util
AsConst.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_ASCONST_H_
36
#define _BLAZE_UTIL_ASCONST_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/typetraits/AddConst.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// ASCONST FUNCTIONALITY
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
63
template
<
typename
T >
64
constexpr
AddConst_t<T>
&
as_const
( T& v )
noexcept
65
{
66
return
v;
67
}
68
//*************************************************************************************************
69
70
71
//*************************************************************************************************
85
template
<
typename
T >
86
void
as_const
(
const
T&& ) =
delete
;
87
//*************************************************************************************************
88
89
}
// namespace blaze
90
91
#endif
AddConst.h
Header file for the AddConst type trait.
blaze::AddConst_t
typename AddConst< T >::Type AddConst_t
Auxiliary alias declaration for the AddConst type trait.
Definition:
AddConst.h:95
blaze::as_const
void as_const(const T &&)=delete
Overload of the as_const() function for rvalues.
Generated by
1.9.3