Home
last modified time | relevance | path

Searched refs:integer_sequence (Results 1 – 25 of 43) sorted by relevance

12

/external/llvm-project/clang/test/SemaTemplate/
Dtemp_arg_pack.cpp11 template<typename T, T ...V> struct integer_sequence {}; struct
14 …int operator^(integer_sequence<T, A...> a, // expected-note {{deduced conflicting values for param…
15 integer_sequence<T, A...> b);
17 …int v = integer_sequence<int, 1, 2, 3>{} ^ integer_sequence<int, 4, 5, 6>{}; // expected-error {{i…
20 integer_sequence<T, A + B...> operator+(integer_sequence<T, A...> a,
21 integer_sequence<T, B...> b);
22 integer_sequence<int, 5, 7, 9> w =
23 integer_sequence<int, 1, 2, 3>{} + integer_sequence<int, 4, 5, 6>{};
Dclass-template-spec.cpp152 template<typename T, T...N> struct integer_sequence { typedef T value_type; }; struct
173 template<typename T, T ...N, typename integer_sequence<T, N...>::value_type ...Extra>
177 struct __make_integer_sequence_impl<integer_sequence<T, N...>, Extra...> {
178 typedef integer_sequence<T, N..., sizeof...(N) + N..., Extra...> type;
183 template<typename Dummy> struct make<0, 0, Dummy> { typedef integer_sequence<T> type; };
184 template<typename Dummy> struct make<1, 1, Dummy> { typedef integer_sequence<T, 0> type; };
194 using X = integer_sequence<int, 0, 1, 2, 3, 4>;
/external/llvm-project/libcxx/test/std/utilities/intseq/intseq.make/
Dmake_integer_seq.pass.cpp24 …static_assert(std::is_same<std::make_integer_sequence<int, 0>, std::integer_sequence<int>>::value,… in main()
25 …static_assert(std::is_same<std::make_integer_sequence<int, 1>, std::integer_sequence<int, 0>>::val… in main()
26 …static_assert(std::is_same<std::make_integer_sequence<int, 2>, std::integer_sequence<int, 0, 1>>::… in main()
27 …static_assert(std::is_same<std::make_integer_sequence<int, 3>, std::integer_sequence<int, 0, 1, 2>… in main()
29 …td::is_same<std::make_integer_sequence<unsigned long long, 0>, std::integer_sequence<unsigned long… in main()
30 …td::is_same<std::make_integer_sequence<unsigned long long, 1>, std::integer_sequence<unsigned long… in main()
31 …td::is_same<std::make_integer_sequence<unsigned long long, 2>, std::integer_sequence<unsigned long… in main()
32 …td::is_same<std::make_integer_sequence<unsigned long long, 3>, std::integer_sequence<unsigned long… in main()
/external/libcxx/test/std/utilities/intseq/intseq.make/
Dmake_integer_seq.pass.cpp23 …static_assert(std::is_same<std::make_integer_sequence<int, 0>, std::integer_sequence<int>>::value,… in main()
24 …static_assert(std::is_same<std::make_integer_sequence<int, 1>, std::integer_sequence<int, 0>>::val… in main()
25 …static_assert(std::is_same<std::make_integer_sequence<int, 2>, std::integer_sequence<int, 0, 1>>::… in main()
26 …static_assert(std::is_same<std::make_integer_sequence<int, 3>, std::integer_sequence<int, 0, 1, 2>… in main()
28 …td::is_same<std::make_integer_sequence<unsigned long long, 0>, std::integer_sequence<unsigned long… in main()
29 …td::is_same<std::make_integer_sequence<unsigned long long, 1>, std::integer_sequence<unsigned long… in main()
30 …td::is_same<std::make_integer_sequence<unsigned long long, 2>, std::integer_sequence<unsigned long… in main()
31 …td::is_same<std::make_integer_sequence<unsigned long long, 3>, std::integer_sequence<unsigned long… in main()
/external/llvm-project/flang/lib/Lower/
DRTBuilder.h203 using RuntimeIdentifier = std::integer_sequence<char, Cs...>;
207 static constexpr std::integer_sequence<T, As..., Bs...>
208 concat(std::integer_sequence<T, As...>, std::integer_sequence<T, Bs...>) {
212 static constexpr auto concat(std::integer_sequence<T, As...>,
213 std::integer_sequence<T, Bs...>, Cs...) {
214 return concat(std::integer_sequence<T, As..., Bs...>{}, Cs{}...);
217 static constexpr std::integer_sequence<T> concat(std::integer_sequence<T>) {
221 static constexpr auto filterZero(std::integer_sequence<T, a>) {
223 return std::integer_sequence<T, a>{};
225 return std::integer_sequence<T>{};
[all …]
/external/llvm-project/libcxx/test/std/utilities/intseq/intseq.intseq/
Dinteger_seq.pass.cpp30 using int3 = std::integer_sequence<int, 3, 2, 1>; in main()
31 using size1 = std::integer_sequence<std::size_t, 7>; in main()
32 using ushort2 = std::integer_sequence<unsigned short, 4, 6>; in main()
33 using bool0 = std::integer_sequence<bool>; in main()
/external/libcxx/test/std/utilities/intseq/intseq.intseq/
Dinteger_seq.pass.cpp29 using int3 = std::integer_sequence<int, 3, 2, 1>; in main()
30 using size1 = std::integer_sequence<std::size_t, 7>; in main()
31 using ushort2 = std::integer_sequence<unsigned short, 4, 6>; in main()
32 using bool0 = std::integer_sequence<bool>; in main()
/external/tensorflow/tensorflow/core/kernels/
Dsobol_op.cc67 Eigen::VectorXi integer_sequence = Eigen::VectorXi::Zero(dim); in GetFirstPoint() local
73 if ((gray_code >> k) & 1) integer_sequence(j) ^= direction_numbers(j, k); in GetFirstPoint()
76 return integer_sequence; in GetFirstPoint()
106 Eigen::VectorXi integer_sequence = in CalculateSobolSample() local
112 output(start_point * dim + j) = integer_sequence(j) * normalizing_constant; in CalculateSobolSample()
122 integer_sequence(j) ^= direction_numbers(j, k); in CalculateSobolSample()
123 output(i * dim + j) = integer_sequence(j) * normalizing_constant; in CalculateSobolSample()
/external/clang/test/SemaTemplate/
Dclass-template-spec.cpp154 template<typename T, T...N> struct integer_sequence { typedef T value_type; }; argument
170 …template<typename T, T ...N, T ...Extra> struct __make_integer_sequence_impl<integer_sequence<T, N…
174 typedef integer_sequence<T, N..., sizeof...(N) + N..., Extra...> type;
179 template<typename Dummy> struct make<0, 0, Dummy> { typedef integer_sequence<T> type; };
180 template<typename Dummy> struct make<1, 1, Dummy> { typedef integer_sequence<T, 0> type; };
190 using X = integer_sequence<int, 0, 1, 2, 3, 4>;
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/utility/
Dutility_test.cc48 StaticAssertTypeEq<int, absl::integer_sequence<int>::value_type>(); in TEST()
49 StaticAssertTypeEq<char, absl::integer_sequence<char>::value_type>(); in TEST()
53 EXPECT_EQ(0, (absl::integer_sequence<int>::size())); in TEST()
54 EXPECT_EQ(1, (absl::integer_sequence<int, 0>::size())); in TEST()
55 EXPECT_EQ(1, (absl::integer_sequence<int, 1>::size())); in TEST()
56 EXPECT_EQ(2, (absl::integer_sequence<int, 1, 2>::size())); in TEST()
57 EXPECT_EQ(3, (absl::integer_sequence<int, 0, 1, 2>::size())); in TEST()
58 EXPECT_EQ(3, (absl::integer_sequence<int, -123, 123, 456>::size())); in TEST()
59 constexpr size_t sz = absl::integer_sequence<int, 0, 1>::size(); in TEST()
73 StaticAssertTypeEq<absl::integer_sequence<int>, in TEST()
[all …]
Dutility.h76 struct integer_sequence { struct
87 using index_sequence = integer_sequence<size_t, Ints...>;
96 struct Extend<integer_sequence<T, Ints...>, SeqSize, 0> {
97 using type = integer_sequence<T, Ints..., (Ints + SeqSize)...>;
101 struct Extend<integer_sequence<T, Ints...>, SeqSize, 1> {
102 using type = integer_sequence<T, Ints..., (Ints + SeqSize)..., 2 * SeqSize>;
115 using type = integer_sequence<T>;
/external/webrtc/third_party/abseil-cpp/absl/utility/
Dutility_test.cc48 StaticAssertTypeEq<int, absl::integer_sequence<int>::value_type>(); in TEST()
49 StaticAssertTypeEq<char, absl::integer_sequence<char>::value_type>(); in TEST()
53 EXPECT_EQ(0, (absl::integer_sequence<int>::size())); in TEST()
54 EXPECT_EQ(1, (absl::integer_sequence<int, 0>::size())); in TEST()
55 EXPECT_EQ(1, (absl::integer_sequence<int, 1>::size())); in TEST()
56 EXPECT_EQ(2, (absl::integer_sequence<int, 1, 2>::size())); in TEST()
57 EXPECT_EQ(3, (absl::integer_sequence<int, 0, 1, 2>::size())); in TEST()
58 EXPECT_EQ(3, (absl::integer_sequence<int, -123, 123, 456>::size())); in TEST()
59 constexpr size_t sz = absl::integer_sequence<int, 0, 1>::size(); in TEST()
73 StaticAssertTypeEq<absl::integer_sequence<int>, in TEST()
[all …]
Dutility.h76 struct integer_sequence { struct
87 using index_sequence = integer_sequence<size_t, Ints...>;
96 struct Extend<integer_sequence<T, Ints...>, SeqSize, 0> {
97 using type = integer_sequence<T, Ints..., (Ints + SeqSize)...>;
101 struct Extend<integer_sequence<T, Ints...>, SeqSize, 1> {
102 using type = integer_sequence<T, Ints..., (Ints + SeqSize)..., 2 * SeqSize>;
115 using type = integer_sequence<T>;
/external/openscreen/third_party/abseil/src/absl/utility/
Dutility_test.cc48 StaticAssertTypeEq<int, absl::integer_sequence<int>::value_type>(); in TEST()
49 StaticAssertTypeEq<char, absl::integer_sequence<char>::value_type>(); in TEST()
53 EXPECT_EQ(0, (absl::integer_sequence<int>::size())); in TEST()
54 EXPECT_EQ(1, (absl::integer_sequence<int, 0>::size())); in TEST()
55 EXPECT_EQ(1, (absl::integer_sequence<int, 1>::size())); in TEST()
56 EXPECT_EQ(2, (absl::integer_sequence<int, 1, 2>::size())); in TEST()
57 EXPECT_EQ(3, (absl::integer_sequence<int, 0, 1, 2>::size())); in TEST()
58 EXPECT_EQ(3, (absl::integer_sequence<int, -123, 123, 456>::size())); in TEST()
59 constexpr size_t sz = absl::integer_sequence<int, 0, 1>::size(); in TEST()
73 StaticAssertTypeEq<absl::integer_sequence<int>, in TEST()
[all …]
Dutility.h76 struct integer_sequence { struct
87 using index_sequence = integer_sequence<size_t, Ints...>;
96 struct Extend<integer_sequence<T, Ints...>, SeqSize, 0> {
97 using type = integer_sequence<T, Ints..., (Ints + SeqSize)...>;
101 struct Extend<integer_sequence<T, Ints...>, SeqSize, 1> {
102 using type = integer_sequence<T, Ints..., (Ints + SeqSize)..., 2 * SeqSize>;
115 using type = integer_sequence<T>;
/external/libtextclassifier/abseil-cpp/absl/utility/
Dutility_test.cc48 StaticAssertTypeEq<int, absl::integer_sequence<int>::value_type>(); in TEST()
49 StaticAssertTypeEq<char, absl::integer_sequence<char>::value_type>(); in TEST()
53 EXPECT_EQ(0, (absl::integer_sequence<int>::size())); in TEST()
54 EXPECT_EQ(1, (absl::integer_sequence<int, 0>::size())); in TEST()
55 EXPECT_EQ(1, (absl::integer_sequence<int, 1>::size())); in TEST()
56 EXPECT_EQ(2, (absl::integer_sequence<int, 1, 2>::size())); in TEST()
57 EXPECT_EQ(3, (absl::integer_sequence<int, 0, 1, 2>::size())); in TEST()
58 EXPECT_EQ(3, (absl::integer_sequence<int, -123, 123, 456>::size())); in TEST()
59 constexpr size_t sz = absl::integer_sequence<int, 0, 1>::size(); in TEST()
73 StaticAssertTypeEq<absl::integer_sequence<int>, in TEST()
[all …]
Dutility.h76 struct integer_sequence { struct
87 using index_sequence = integer_sequence<size_t, Ints...>;
96 struct Extend<integer_sequence<T, Ints...>, SeqSize, 0> {
97 using type = integer_sequence<T, Ints..., (Ints + SeqSize)...>;
101 struct Extend<integer_sequence<T, Ints...>, SeqSize, 1> {
102 using type = integer_sequence<T, Ints..., (Ints + SeqSize)..., 2 * SeqSize>;
115 using type = integer_sequence<T>;
/external/abseil-cpp/absl/utility/
Dutility_test.cc48 StaticAssertTypeEq<int, absl::integer_sequence<int>::value_type>(); in TEST()
49 StaticAssertTypeEq<char, absl::integer_sequence<char>::value_type>(); in TEST()
53 EXPECT_EQ(0, (absl::integer_sequence<int>::size())); in TEST()
54 EXPECT_EQ(1, (absl::integer_sequence<int, 0>::size())); in TEST()
55 EXPECT_EQ(1, (absl::integer_sequence<int, 1>::size())); in TEST()
56 EXPECT_EQ(2, (absl::integer_sequence<int, 1, 2>::size())); in TEST()
57 EXPECT_EQ(3, (absl::integer_sequence<int, 0, 1, 2>::size())); in TEST()
58 EXPECT_EQ(3, (absl::integer_sequence<int, -123, 123, 456>::size())); in TEST()
59 constexpr size_t sz = absl::integer_sequence<int, 0, 1>::size(); in TEST()
73 StaticAssertTypeEq<absl::integer_sequence<int>, in TEST()
[all …]
Dutility.h76 struct integer_sequence { struct
87 using index_sequence = integer_sequence<size_t, Ints...>;
96 struct Extend<integer_sequence<T, Ints...>, SeqSize, 0> {
97 using type = integer_sequence<T, Ints..., (Ints + SeqSize)...>;
101 struct Extend<integer_sequence<T, Ints...>, SeqSize, 1> {
102 using type = integer_sequence<T, Ints..., (Ints + SeqSize)..., 2 * SeqSize>;
115 using type = integer_sequence<T>;
/external/pigweed/pw_polyfill/standard_library_public/pw_polyfill/standard_library/
Dutility.h26 struct integer_sequence { struct
38 struct MakeSequence<0, T, sequence...> : std::integer_sequence<T, sequence...> { argument
44 using index_sequence = integer_sequence<size_t, sequence...>;
/external/clang/test/CodeGenCXX/
Dmangle-template.cpp206 template <class _Tp, _Tp...> struct integer_sequence {}; struct
211 __make_integer_seq<std::integer_sequence, int, N> make() {} in make()
212 template __make_integer_seq<std::integer_sequence, int, 5> make<5>();
/external/llvm-project/clang/test/CodeGenCXX/
Dmangle-template.cpp206 template <class _Tp, _Tp...> struct integer_sequence {}; struct
211 __make_integer_seq<std::integer_sequence, int, N> make() {} in make()
212 template __make_integer_seq<std::integer_sequence, int, 5> make<5>();
/external/llvm-project/libcxx/test/std/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp22 auto extract ( const AtContainer &t, const std::integer_sequence<T, I...> ) in extract()
33 using intmix = std::integer_sequence<int, 9, 8, 7, 2>; // generates int: 9,8,7,2 in main()
/external/libcxx/test/std/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp21 auto extract ( const AtContainer &t, const std::integer_sequence<T, I...> ) in extract()
32 using intmix = std::integer_sequence<int, 9, 8, 7, 2>; // generates int: 9,8,7,2 in main()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dapply_large_arity.pass.cpp38 struct make_function<Tp, std::integer_sequence<std::size_t, Idx...>>
52 struct make_tuple_imp<Tp, std::integer_sequence<std::size_t, Idx...>>

12