Home
last modified time | relevance | path

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

/external/Microsoft-GSL/tests/
Dstrided_span_tests.cpp79 strided_span<const int, 1> sav2{ carr, {{ 4 }, { 2 }} }; // const T -> const T in SUITE() local
80 CHECK(sav2.bounds().index_bounds() == index<1>{ 4 }); in SUITE()
81 CHECK(sav2.bounds().strides() == index<1>{2}); in SUITE()
82 CHECK(sav2[0] == 1 && sav2[3] == 7); in SUITE()
213 strided_span<const int, 2> sav2{ src2 }; in SUITE() local
214 CHECK((sav2.bounds().index_bounds() == index<2>{ 3, 2 })); in SUITE()
215 CHECK((sav2.bounds().strides() == index<2>{ 2, 1 })); in SUITE()
216 CHECK((sav2[{0, 0}] == 1 && sav2[{2, 0}] == 5)); in SUITE()
248 strided_span<const int, 2> sav2{ arr2b, {{ 1, 1 },{ 1, 1 }} }; in SUITE() local
249 strided_span<const int, 2>& sav2_ref = (sav2 = src2); in SUITE()
[all …]