Phi
add_const.hpp
1 #ifndef INCG_PHI_CORE_TYPE_TRAITS_ADD_CONST_HPP
2 #define INCG_PHI_CORE_TYPE_TRAITS_ADD_CONST_HPP
3 
4 #include "phi/phi_config.hpp"
5 
6 #if PHI_HAS_EXTENSION_PRAGMA_ONCE()
7 # pragma once
8 #endif
9 
10 DETAIL_PHI_BEGIN_NAMESPACE()
11 
12 template <typename TypeT>
13 struct add_const
14 {
15  using type = const TypeT;
16 };
17 
18 template <typename TypeT>
19 using add_const_t = typename add_const<TypeT>::type;
20 
21 DETAIL_PHI_END_NAMESPACE()
22 
23 #endif // INCG_PHI_CORE_TYPE_TRAITS_ADD_CONST_HPP
Definition: add_const.hpp:13