File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
libcxx/include/__type_traits Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 19
19
20
20
_LIBCPP_BEGIN_NAMESPACE_STD
21
21
22
+ #if __has_builtin(__is_integral)
23
+
24
+ template <class _Tp >
25
+ struct _LIBCPP_NO_SPECIALIZATIONS is_integral : _BoolConstant<__is_integral(_Tp)> {};
26
+
27
+ # if _LIBCPP_STD_VER >= 17
28
+ template <class _Tp >
29
+ _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_integral_v = __is_integral(_Tp);
30
+ # endif
31
+
32
+ #else
33
+
22
34
// clang-format off
23
35
template <class _Tp > struct __libcpp_is_integral { enum { value = 0 }; };
24
36
template <> struct __libcpp_is_integral <bool > { enum { value = 1 }; };
@@ -47,18 +59,6 @@ template <> struct __libcpp_is_integral<__uint128_t> { enum { va
47
59
#endif
48
60
// clang-format on
49
61
50
- #if __has_builtin(__is_integral)
51
-
52
- template <class _Tp >
53
- struct _LIBCPP_NO_SPECIALIZATIONS is_integral : _BoolConstant<__is_integral(_Tp)> {};
54
-
55
- # if _LIBCPP_STD_VER >= 17
56
- template <class _Tp >
57
- _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_integral_v = __is_integral(_Tp);
58
- # endif
59
-
60
- #else
61
-
62
62
template <class _Tp >
63
63
struct is_integral : public _BoolConstant <__libcpp_is_integral<__remove_cv_t <_Tp> >::value> {};
64
64
You can’t perform that action at this time.
0 commit comments