1 #ifndef INCG_PHI_CORE_TYPE_TRAITS_INTEGRAL_CONSTANT_HPP 2 #define INCG_PHI_CORE_TYPE_TRAITS_INTEGRAL_CONSTANT_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.hpp" 12 #include "phi/compiler_support/nodiscard.hpp" 13 #include "phi/compiler_support/noexcept.hpp" 15 DETAIL_PHI_BEGIN_NAMESPACE()
18 template <typename TypeT, TypeT Value>
22 using value_type = TypeT;
25 static PHI_CONSTEXPR_AND_CONST TypeT value = Value;
27 PHI_NODISCARD PHI_ALWAYS_INLINE PHI_CONSTEXPR
operator TypeT()
const PHI_NOEXCEPT
32 PHI_NODISCARD PHI_ALWAYS_INLINE PHI_CONSTEXPR TypeT operator()()
const PHI_NOEXCEPT
38 #if PHI_CPP_STANDARD_IS_BELOW(17) 40 template <
typename TypeT, TypeT Value>
41 PHI_CONSTEXPR_AND_CONST TypeT
49 DETAIL_PHI_END_NAMESPACE()
51 #endif // INCG_PHI_CORE_TYPE_TRAITS_INTEGRAL_CONSTANT_HPP Definition: integral_constant.hpp:19