Home
last modified time | relevance | path

Searched refs:is_integral (Results 1 – 25 of 97) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
H A Dis_integral.pass.cpp20 static_assert( std::is_integral<T>::value, ""); in test_is_integral()
21 static_assert( std::is_integral<const T>::value, ""); in test_is_integral()
22 static_assert( std::is_integral<volatile T>::value, ""); in test_is_integral()
23 static_assert( std::is_integral<const volatile T>::value, ""); in test_is_integral()
35 static_assert(!std::is_integral<T>::value, ""); in test_is_not_integral()
36 static_assert(!std::is_integral<const T>::value, ""); in test_is_not_integral()
37 static_assert(!std::is_integral<volatile T>::value, ""); in test_is_not_integral()
38 static_assert(!std::is_integral<const volatile T>::value, ""); in test_is_not_integral()
H A Dintegral.pass.cpp23 static_assert( std::is_integral<T>::value, ""); in test_integral_imp()
69 static_assert(!std::is_integral<incomplete_type>::value, ""); in main()
/llvm-project-15.0.7/clang/test/Headers/Inputs/include/
H A Dtype_traits21 // is_integral, for some types.
22 template <class _Tp> struct is_integral
24 template <> struct is_integral<bool>
26 template <> struct is_integral<char>
28 template <> struct is_integral<short>
30 template <> struct is_integral<int>
32 template <> struct is_integral<long>
34 template <> struct is_integral<long long>
/llvm-project-15.0.7/libcxx/include/
H A Dmath.h408 typename std::enable_if<std::is_integral<_A1>::value, int>::type
424 typename std::enable_if<std::is_integral<_A1>::value, int>::type
548 typename std::enable_if<std::is_integral<_A1>::value, bool>::type
596 typename std::enable_if<std::is_integral<_A1>::value, bool>::type
799 typename std::enable_if<std::is_integral<_A1>::value, double>::type
811 typename std::enable_if<std::is_integral<_A1>::value, double>::type
823 typename std::enable_if<std::is_integral<_A1>::value, double>::type
858 typename std::enable_if<std::is_integral<_A1>::value, double>::type
1371 typename std::enable_if<std::is_integral<_A1>::value, int>::type
1497 typename std::enable_if<std::is_integral<_A1>::value, long>::type
[all …]
/llvm-project-15.0.7/clang/lib/Headers/
H A D__clang_hip_cmath.h273 template <class _Tp> struct is_integral {
276 template <> struct is_integral<bool> {
279 template <> struct is_integral<char> {
282 template <> struct is_integral<signed char> {
285 template <> struct is_integral<unsigned char> {
288 template <> struct is_integral<wchar_t> {
291 template <> struct is_integral<short> {
297 template <> struct is_integral<int> {
300 template <> struct is_integral<unsigned int> {
303 template <> struct is_integral<long> {
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/cmplx.over/
H A Dpow.pass.cpp32 promote(T, typename std::enable_if<std::is_integral<T>::value>::type* = 0);
67 test(typename std::enable_if<std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std::… in test()
75 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0, typename std::enable_if<!std:… in test()
H A Darg.pass.cpp24 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
32 test(T x, typename std::enable_if<!std::is_integral<T>::value>::type* = 0) in test()
H A Dnorm.pass.cpp24 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
32 test(T x, typename std::enable_if<!std::is_integral<T>::value>::type* = 0) in test()
H A Dimag.pass.cpp24 test(typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
38 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0) in test()
H A Dreal.pass.cpp24 test(typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
38 test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0) in test()
H A Dconj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
42 test(T x, typename std::enable_if<!std::is_integral<T>::value && in test()
H A Dproj.pass.cpp26 test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0) in test()
42 test(T x, typename std::enable_if<!std::is_integral<T>::value && in test()
/llvm-project-15.0.7/libcxx/include/__numeric/
H A Dgcd_lcm.h62 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to gcd must be inte…
77 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerRandom.h22 typename std::enable_if<std::is_integral<T>::value, T>::type Rand() { in Rand()
32 typename std::enable_if<std::is_integral<T>::value, T>::type operator()(T n) { in operator()
36 typename std::enable_if<std::is_integral<T>::value, T>::type
/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dis_integral.h51 struct _LIBCPP_TEMPLATE_VIS is_integral : _BoolConstant<__is_integral(_Tp)> { };
60 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_integral
65 inline constexpr bool is_integral_v = is_integral<_Tp>::value;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dconst-correctness-transform-values.cpp135 struct is_integral : integral_constant<bool, false> {}; struct
137 struct is_integral<int> : integral_constant<bool, true> {}; struct
154 template <typename T2 = T, typename = typename enable_if<is_integral<T2>::value>::type>
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dcontainer-data-pointer.cpp37 struct is_integral;
40 struct is_integral<size_t> { struct
78 typename = typename std::enable_if<std::is_integral<U>::value>::type>
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dhalf_positive.h27 is_integral<_Integral>::value,
39 !is_integral<_Tp>::value,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyCheck.h193 std::enable_if_t<std::is_integral<T>::value, llvm::Optional<T>>
214 std::enable_if_t<std::is_integral<T>::value, T> get(StringRef LocalName, in get()
230 std::enable_if_t<std::is_integral<T>::value, llvm::Optional<T>>
259 std::enable_if_t<std::is_integral<T>::value, T>
353 std::enable_if_t<std::is_integral<T>::value>
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSequence.h130 std::is_integral<Integral>::value, bool> = 0>
167 std::is_integral<Integral>::value, bool> = 0>
291 static_assert(std::is_integral<T>::value || std::is_enum<T>::value,
304 template <typename T, typename = std::enable_if_t<std::is_integral<T>::value &&
314 template <typename T, typename = std::enable_if_t<std::is_integral<T>::value &&
/llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/
H A Dstddef_h.pass.cpp34 static_assert(std::is_integral<size_t>::value, in main()
40 static_assert(std::is_integral<ptrdiff_t>::value, in main()
/llvm-project-15.0.7/libcxx/include/__utility/
H A Dinteger_sequence.h27 static_assert( is_integral<_Tp>::value,
52 static_assert(is_integral<_Tp>::value,
/llvm-project-15.0.7/pstl/include/pstl/internal/omp/
H A Dutil.h81 template <typename _Iterator, std::enable_if_t<!std::is_integral<_Iterator>::value, bool> = true>
90 template <typename _Index, std::enable_if_t<std::is_integral<_Index>::value, bool> = true>
/llvm-project-15.0.7/libcxx/test/std/input.output/iostreams.base/stream.types/
H A Dstreamsize.pass.cpp20 static_assert(std::is_integral<std::streamsize>::value, ""); in main()
H A Dstreamoff.pass.cpp20 static_assert(std::is_integral<std::streamoff>::value, ""); in main()

1234