[ControlHeightReduction] Add assert to avoid underflow (#116339)
[llvm-project.git] / libcxx / modules / std / mdspan.inc
blob5e65993383cdc042451ab2df348d01a76d7e49f9
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11 #if _LIBCPP_STD_VER >= 23
12   // [mdspan.extents], class template extents
13   using std::extents;
15   // [mdspan.extents.dextents], alias template dextents
16   using std::dextents;
18 #  if _LIBCPP_STD_VER >= 26
19   // [mdspan.extents.dims]
20   using std::dims;
21 #  endif // _LIBCPP_STD_VER >= 26
23   // [mdspan.layout], layout mapping
24   using std::layout_left;
25   using std::layout_right;
26   using std::layout_stride;
28   // [mdspan.accessor.default], class template default_accessor
29   using std::default_accessor;
31   // [mdspan.mdspan], class template mdspan
32   using std::mdspan;
33 #endif // _LIBCPP_STD_VER >= 23
34 } // namespace std