1 #ifndef INCG_PHI_CORE_TYPE_TRAITS_IS_CONST_HPP 2 #define INCG_PHI_CORE_TYPE_TRAITS_IS_CONST_HPP 4 #include "phi/phi_config.hpp" 6 #if PHI_HAS_EXTENSION_PRAGMA_ONCE() 10 #include "phi/compiler_support/constexpr.hpp" 11 #include "phi/compiler_support/inline_variables.hpp" 12 #include "phi/compiler_support/intrinsics/is_const.hpp" 13 #include "phi/type_traits/integral_constant.hpp" 15 DETAIL_PHI_BEGIN_NAMESPACE()
17 #if PHI_SUPPORTS_IS_CONST() 19 template <
typename TypeT>
23 template <
typename TypeT>
27 # if PHI_HAS_FEATURE_VARIABLE_TEMPLATE() 29 template <
typename TypeT>
30 PHI_INLINE_VARIABLE PHI_CONSTEXPR
bool is_const_v = PHI_IS_CONST(TypeT);
32 template <
typename TypeT>
33 PHI_INLINE_VARIABLE PHI_CONSTEXPR
bool is_not_const_v = !PHI_IS_CONST(TypeT);
39 template <
typename TypeT>
43 template <
typename TypeT>
47 template <
typename TypeT>
51 # if PHI_HAS_FEATURE_VARIABLE_TEMPLATE() 53 template <
typename TypeT>
56 template <
typename TypeT>
63 DETAIL_PHI_END_NAMESPACE()
65 #endif // INCG_PHI_CORE_TYPE_TRAITS_IS_CONST_HPP Definition: integral_constant.hpp:19
Definition: is_const.hpp:40
Definition: is_const.hpp:48