• Home
  • Raw
  • Download

Lines Matching refs:ArrayView

32 size_t Call(ArrayView<T> av) {  in Call()
37 void CallFixed(ArrayView<T, N> av) {} in CallFixed()
49 ArrayView<int*> x; in TEST()
52 ArrayView<char> y = arr; in TEST()
55 ArrayView<char, 6> yf = arr; in TEST()
58 ArrayView<const char> z(arr + 1, 3); in TEST()
61 ArrayView<const char, 3> zf(arr + 1, 3); in TEST()
64 ArrayView<const char> w(arr, 2); in TEST()
67 ArrayView<const char, 2> wf(arr, 2); in TEST()
70 ArrayView<char> q(arr, 0); in TEST()
73 ArrayView<char, 0> qf(arr, 0); in TEST()
78 EXPECT_DEATH(ArrayView<int>(static_cast<int*>(nullptr), 5), ""); in TEST()
87 ArrayView<char> x = arr; in TEST()
90 ArrayView<char> y = x; // Copy non-const -> non-const. in TEST()
93 ArrayView<const char> z = x; // Copy non-const -> const. in TEST()
96 ArrayView<const char> w = z; // Copy const -> const. in TEST()
104 ArrayView<char> x = arr; in TEST()
107 ArrayView<char> y = std::move(x); // Copy non-const -> non-const. in TEST()
110 ArrayView<const char> z = std::move(x); // Copy non-const -> const. in TEST()
113 ArrayView<const char> w = std::move(z); // Copy const -> const. in TEST()
121 ArrayView<char, 6> x = arr; in TEST()
126 ArrayView<char, 6> y = x; // Copy non-const -> non-const. in TEST()
129 ArrayView<const char, 6> z = x; // Copy non-const -> const. in TEST()
132 ArrayView<const char, 6> w = z; // Copy const -> const. in TEST()
138 ArrayView<char> yv = x; // Copy non-const -> non-const. in TEST()
141 ArrayView<const char> zv = x; // Copy non-const -> const. in TEST()
144 ArrayView<const char> wv = z; // Copy const -> const. in TEST()
152 ArrayView<char, 6> x = arr; in TEST()
157 ArrayView<char, 6> y = std::move(x); // Copy non-const -> non-const. in TEST()
160 ArrayView<const char, 6> z = std::move(x); // Copy non-const -> const. in TEST()
163 ArrayView<const char, 6> w = std::move(z); // Copy const -> const. in TEST()
169 ArrayView<char> yv = std::move(x); // Copy non-const -> non-const. in TEST()
172 ArrayView<const char> zv = std::move(x); // Copy non-const -> const. in TEST()
175 ArrayView<const char> wv = std::move(z); // Copy const -> const. in TEST()
183 ArrayView<char> x(arr); in TEST()
186 ArrayView<char> y; in TEST()
190 ArrayView<const char> z; in TEST()
194 ArrayView<const char> w; in TEST()
204 ArrayView<char> x(arr); in TEST()
207 ArrayView<char> y; in TEST()
211 ArrayView<const char> z; in TEST()
215 ArrayView<const char> w; in TEST()
226 ArrayView<char, 6> x(arr); in TEST()
230 ArrayView<char, 6> y(init); in TEST()
233 ArrayView<const char, 6> z(init); in TEST()
236 ArrayView<const char, 6> w(init); in TEST()
243 ArrayView<char> yv; in TEST()
247 ArrayView<const char> zv; in TEST()
251 ArrayView<const char> wv; in TEST()
262 ArrayView<char, 6> x(arr); in TEST()
266 ArrayView<char, 6> y(init); in TEST()
269 ArrayView<const char, 6> z(init); in TEST()
272 ArrayView<const char, 6> w(init); in TEST()
279 ArrayView<char> yv; in TEST()
283 ArrayView<const char> zv; in TEST()
287 ArrayView<const char> wv; in TEST()
301 rtc::ArrayView<float, size> arr_view_fixed(arr); in TEST()
305 rtc::ArrayView<float> arr_view(arr); in TEST()
314 rtc::ArrayView<const float, size> constexpr_arr_view(constexpr_arr); in TEST()
319 rtc::ArrayView<const float, size> const_arr_view(const_arr); in TEST()
324 rtc::ArrayView<const float, size> non_const_arr_view(non_const_arr); in TEST()
337 ArrayView<int> x = v; in TEST()
340 ArrayView<const int> y; in TEST()
348 ArrayView<const int> z = cv; in TEST()
359 ArrayView<uint8_t> x = b; in TEST()
362 ArrayView<const uint8_t> y; in TEST()
370 ArrayView<const uint8_t> z = cb; in TEST()
379 ArrayView<const char> x(arr); in TEST()
382 ArrayView<const char> y(aye); in TEST()
398 ArrayView<const char, 5> x(arr); in TEST()
400 ArrayView<const char, 5> y(aye); in TEST()
414 ArrayView<char> x(arr); in TEST()
415 const ArrayView<char> y(arr); in TEST()
416 ArrayView<const char, 8> z(arr); in TEST()
436 ArrayView<std::vector<std::vector<std::vector<std::string>>>> av; in TEST()
445 ArrayView<std::vector<std::vector<std::vector<std::string>>>, 0> af; in TEST()
456 ArrayView<std::vector<std::vector<std::vector<std::string>>>> av; in TEST()
462 ArrayView<std::vector<std::vector<std::vector<std::string>>>, 0> af; in TEST()
470 ArrayView<char> av(arr); in TEST()
482 for (auto& e : ArrayView<const char>(av)) { in TEST()
491 ArrayView<char> av(arr); in TEST()
510 ArrayView<char, 6> av(arr); in TEST()
522 for (auto& e : ArrayView<const char, 6>(av)) { in TEST()
531 ArrayView<char, 6> av(arr); in TEST()
549 EXPECT_TRUE(ArrayView<int>().empty()); in TEST()
551 EXPECT_FALSE(ArrayView<const int>(a).empty()); in TEST()
553 static_assert(ArrayView<int, 0>::empty(), ""); in TEST()
554 static_assert(!ArrayView<int, 3>::empty(), ""); in TEST()
561 EXPECT_EQ(ArrayView<int>(a), ArrayView<int>(a)); in TEST()
562 EXPECT_EQ((ArrayView<int, 3>(a)), (ArrayView<int, 3>(a))); in TEST()
563 EXPECT_EQ(ArrayView<int>(a), (ArrayView<int, 3>(a))); in TEST()
564 EXPECT_EQ(ArrayView<int>(), ArrayView<int>()); in TEST()
565 EXPECT_EQ(ArrayView<int>(), ArrayView<int>(a, 0)); in TEST()
566 EXPECT_EQ(ArrayView<int>(a, 0), ArrayView<int>(b, 0)); in TEST()
567 EXPECT_EQ((ArrayView<int, 0>(a, 0)), ArrayView<int>()); in TEST()
569 EXPECT_NE(ArrayView<int>(a), ArrayView<int>(b)); in TEST()
570 EXPECT_NE((ArrayView<int, 3>(a)), (ArrayView<int, 3>(b))); in TEST()
571 EXPECT_NE((ArrayView<int, 3>(a)), ArrayView<int>(b)); in TEST()
572 EXPECT_NE(ArrayView<int>(a), ArrayView<int>()); in TEST()
573 EXPECT_NE(ArrayView<int>(a), ArrayView<int>(a, 2)); in TEST()
574 EXPECT_NE((ArrayView<int, 3>(a)), (ArrayView<int, 2>(a, 2))); in TEST()
579 ArrayView<int> av(a); in TEST()
596 ArrayView<int, 3> av(a); in TEST()
613 ArrayView<uint8_t, 3> uint8_av(bytes); in TEST()
614 ArrayView<int8_t, 3> int8_av = reinterpret_array_view<int8_t>(uint8_av); in TEST()
623 ArrayView<int8_t> int8_av(v); in TEST()
624 ArrayView<uint8_t> uint8_av = reinterpret_array_view<uint8_t>(int8_av); in TEST()