Blaze  3.6
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 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
71 template< typename T >
72 struct Decay
73 {
74  public:
75  //**********************************************************************************************
77  using Type = typename std::decay<T>::type;
79  //**********************************************************************************************
80 };
81 //*************************************************************************************************
82 
83 
84 //*************************************************************************************************
97 template< typename T >
98 using 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.The Decay_t alias declaration provides a conveni...
Definition: Decay.h:98
Applies the type conversions for by-value function arguments.This type trait applies the type convers...
Definition: Decay.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58