1 #ifndef INCG_PHI_CORE_TYPE_TRAITS_IS_SAME_HPP 2 #define INCG_PHI_CORE_TYPE_TRAITS_IS_SAME_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_same.hpp" 13 #include "phi/type_traits/integral_constant.hpp" 15 DETAIL_PHI_BEGIN_NAMESPACE()
17 #if PHI_SUPPORTS_IS_SAME() 19 template <
typename LhsT,
typename RhsT>
23 template <
typename LhsT,
typename RhsT>
27 # if PHI_HAS_FEATURE_VARIABLE_TEMPLATE() 29 template <
typename LhsT,
typename RhsT>
30 PHI_INLINE_VARIABLE PHI_CONSTEXPR
bool is_same_v = PHI_IS_SAME(LhsT, RhsT);
32 template <
typename LhsT,
typename RhsT>
33 PHI_INLINE_VARIABLE PHI_CONSTEXPR
bool is_not_same_v = !PHI_IS_SAME(LhsT, RhsT);
39 template <
typename LhsT,
typename RhsT>
43 template <
typename TypeT>
47 template <
typename TypeT,
typename OtherT>
51 template <
typename TypeT>
55 # if PHI_HAS_FEATURE_VARIABLE_TEMPLATE() 57 template <
typename LhsT,
typename RhsT>
60 template <
typename TypeT,
typename OtherT>
67 DETAIL_PHI_END_NAMESPACE()
69 #endif // INCG_PHI_CORE_TYPE_TRAITS_IS_SAME_HPP Definition: integral_constant.hpp:19
Definition: is_same.hpp:48
Definition: is_same.hpp:40