Debian Codegraph @

packages/kokkos/tpls/mdspan/include/experimental/__p0009_bits/dynamic_extent.hpp

raw
1 //@HEADER
2 // ************************************************************************
3 //
4 // Kokkos v. 4.0
5 // Copyright (2022) National Technology & Engineering
6 // Solutions of Sandia, LLC (NTESS).
7 //
8 // Under the terms of Contract DE-NA0003525 with NTESS,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions.
12 // See https://kokkos.org/LICENSE for license information.
13 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14 //
15 //@HEADER
16 #pragma once
17
18 #include "macros.hpp"
19
20 #if defined(__cpp_lib_span)
21 #include <span>
22 #endif
23
24 #include <cstddef> // size_t
25 #include <limits> // numeric_limits
26
27 namespace MDSPAN_IMPL_STANDARD_NAMESPACE {
28 #if defined(__cpp_lib_span)
29 using std::dynamic_extent;
30 #else
31 _MDSPAN_INLINE_VARIABLE constexpr auto dynamic_extent = std::numeric_limits<size_t>::max();
32 #endif
33 } // namespace MDSPAN_IMPL_STANDARD_NAMESPACE
34
35 //==============================================================================================================