Blaze 3.9
Decay.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPETRAITS_DECAY_H_
36#define _BLAZE_UTIL_TYPETRAITS_DECAY_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <type_traits>
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
71template< typename T >
72struct Decay
73{
74 public:
75 //**********************************************************************************************
77 using Type = typename std::decay<T>::type;
79 //**********************************************************************************************
80};
81//*************************************************************************************************
82
83
84//*************************************************************************************************
97template< typename T >
98using Decay_t = typename Decay<T>::Type;
99//*************************************************************************************************
100
101} // namespace blaze
102
103#endif
typename Decay< T >::Type Decay_t
Auxiliary alias declaration for the Decay type trait.
Definition: Decay.h:98
Applies the type conversions for by-value function arguments.
Definition: Decay.h:73