Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:52

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //                        Kokkos v. 4.0
0009 //       Copyright (2022) National Technology & Engineering
0010 //               Solutions of Sandia, LLC (NTESS).
0011 //
0012 // Under the terms of Contract DE-NA0003525 with NTESS,
0013 // the U.S. Government retains certain rights in this software.
0014 //
0015 //===---------------------------------------------------------------------===//
0016 
0017 #ifndef _LIBCPP___MDSPAN_LAYOUTS_H
0018 #define _LIBCPP___MDSPAN_LAYOUTS_H
0019 
0020 #include <__config>
0021 
0022 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0023 #  pragma GCC system_header
0024 #endif
0025 
0026 _LIBCPP_PUSH_MACROS
0027 #include <__undef_macros>
0028 
0029 _LIBCPP_BEGIN_NAMESPACE_STD
0030 
0031 #if _LIBCPP_STD_VER >= 23
0032 
0033 // Layout policy with a mapping which corresponds to FORTRAN-style array layouts
0034 struct layout_left {
0035   template <class _Extents>
0036   class mapping;
0037 };
0038 
0039 // Layout policy with a mapping which corresponds to C-style array layouts
0040 struct layout_right {
0041   template <class _Extents>
0042   class mapping;
0043 };
0044 
0045 // Layout policy with a unique mapping where strides are arbitrary
0046 struct layout_stride {
0047   template <class _Extents>
0048   class mapping;
0049 };
0050 
0051 #endif // _LIBCPP_STD_VER >= 23
0052 
0053 _LIBCPP_END_NAMESPACE_STD
0054 
0055 _LIBCPP_POP_MACROS
0056 
0057 #endif // _LIBCPP___MDSPAN_LAYOUTS_H