Lines Matching refs:arr
27 std::array arr{1,2,3}; // array(T, U...) in tests() local
28 static_assert(std::is_same_v<decltype(arr), std::array<int, 3>>, ""); in tests()
29 assert(arr[0] == 1); in tests()
30 assert(arr[1] == 2); in tests()
31 assert(arr[2] == 3); in tests()
36 std::array arr{1L, 4L, 9L, l1}; // array(T, U...) in tests() local
37 static_assert(std::is_same_v<decltype(arr)::value_type, long>, ""); in tests()
38 static_assert(arr.size() == 4, ""); in tests()
39 assert(arr[0] == 1); in tests()
40 assert(arr[1] == 4); in tests()
41 assert(arr[2] == 9); in tests()
42 assert(arr[3] == l1); in tests()
48 std::array arr(source); // array(array) in tests() local
49 static_assert(std::is_same_v<decltype(arr), decltype(source)>, ""); in tests()
50 static_assert(std::is_same_v<decltype(arr), std::array<double, 2>>, ""); in tests()
51 assert(arr[0] == 4.0); in tests()
52 assert(arr[1] == 5.0); in tests()