Home
last modified time | relevance | path

Searched refs:arr2d (Results 1 – 2 of 2) sorted by relevance

/external/Microsoft-GSL/tests/
Dmulti_span_tests.cpp344 int arr2d[2][3] = {1, 2, 3, 4, 5, 6}; variable
347 multi_span<int> s{arr2d};
348 CHECK((s.length() == 6 && s.data() == &arr2d[0][0]));
353 multi_span<int, 0> s{arr2d};
354 CHECK((s.length() == 0 && s.data() == &arr2d[0][0]));
359 multi_span<int, 5> s{arr2d};
364 multi_span<int, 6> s{arr2d};
365 CHECK((s.length() == 6 && s.data() == &arr2d[0][0]));
371 multi_span<int, 7> s{arr2d};
376 multi_span<int[3]> s{arr2d[0]};
[all …]
Dspan_tests.cpp331 int arr2d[2][3] = {1, 2, 3, 4, 5, 6}; variable
344 span<int> s{arr2d};
345 CHECK((s.size() == 6 && s.data() == &arr2d[0][0]));
350 span<int, 0> s{arr2d};
351 CHECK((s.size() == 0 && s.data() == &arr2d[0][0]));
355 span<int, 6> s{arr2d};
359 const span<int[3]> s{std::addressof(arr2d[0]), 1};
360 CHECK((s.size() == 1 && s.data() == std::addressof(arr2d[0])));
398 const auto s = make_span(std::addressof(arr2d[0]), 1);
399 CHECK((s.size() == 1 && s.data() == std::addressof(arr2d[0])));
[all …]