48 {
49 static_assert(std::is_constructible_v<span<int>, std::array<int, 1>&>);
50 static_assert(std::is_constructible_v<span<const int>, std::array<int, 1>&>);
51 static_assert(std::is_constructible_v<span<const int>, const std::array<int, 1>&>);
52 static_assert(std::is_constructible_v<span<int, 1>, std::array<int, 1>&>);
53 static_assert(std::is_constructible_v<span<const int, 1>, std::array<int, 1>&>);
54 static_assert(std::is_constructible_v<span<const int, 1>, const std::array<int, 1>&>);
55 static_assert(!std::is_constructible_v<span<int>, std::array<long, 1>&>);
56 static_assert(!std::is_constructible_v<span<int, 1>, std::array<int, 2>&>);
57 static_assert(!std::is_constructible_v<span<int>, const std::array<int, 1>&>);
58 static_assert(!std::is_constructible_v<span<int, 1>, const std::array<int, 1>&>);
59 std::array<int, 1> a1;
61 CHECK(s1.data() == a1.data());
62 CHECK(s1.size() == 1);
63}