1 | // |
2 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
3 | // See https://llvm.org/LICENSE.txt for license information. |
4 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
5 | // |
6 | //===----------------------------------------------------------------------===// |
7 | |
8 | // UNSUPPORTED: c++03, c++11, c++14, c++17 |
9 | |
10 | // P2251 was voted into C++23, but is supported even in C++20 mode by all vendors. |
11 | |
12 | // <span> |
13 | |
14 | #include <span> |
15 | #include <type_traits> |
16 | |
17 | static_assert(std::is_trivially_copyable_v<std::span<int>>); |
18 | static_assert(std::is_trivially_copyable_v<std::span<int, 3>>); |
19 | |