Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
full_extent.hpp
Go to the documentation of this file.
1// parasoft-begin-suppress AUTOSAR-A2_8_1-a "False positive: also defines arene::base::full_extent"
2
3// Copyright 2026, Toyota Motor Corporation
4//
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_FULL_EXTENT_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_FULL_EXTENT_HPP_
9
10#include "arene/base/compiler_support/cpp14_inline.hpp"
11
12namespace arene {
13namespace base {
14
15// parasoft-begin-suppress AUTOSAR-A2_7_3-a "False positive: Declaration *is* preceeded by the @brief tag."
16/// @brief tag class specifying the full extent of an mdspan
17///
19 public:
20 /// @brief explicit default constructor
21 explicit full_extent_t() = default;
22};
23// parasoft-end-suppress AUTOSAR-A2_7_3-a
24
25// parasoft-begin-suppress CERT_CPP-DCL56-a "False positive: variables are initialized"
26// parasoft-begin-suppress AUTOSAR-M3_4_1-b "This is a per-TU reference to a global used in multiple TUs"
27// parasoft-begin-suppress AUTOSAR-M7_3_3-a "An unnamed namespace is used to create a per-TU reference to a global
28// object used in multiple TUs."
29// parasoft-begin-suppress CERT_CPP-DCL59-a "An unnamed namespace is used to create a per-TU reference to a global
30// object used in multiple TUs."
31/// @def arene::base::full_extent
32/// @brief tag specifying the full extent of an mdspan
33///
34/// @c full_extent is a disambiguation tag that can be passed to @c submdspan to
35/// maintain the full range of indices in the returned @c mdspan for a specific
36/// dimension.
37///
38/// @relates full_extent_t
39/// @see full_extent_t
41
42// parasoft-end-suppress CERT_CPP-DCL56-a
43// parasoft-end-suppress AUTOSAR-M3_4_1-b
44// parasoft-end-suppress AUTOSAR-M7_3_3-a
45// parasoft-end-suppress CERT_CPP-DCL59-a
46
47} // namespace base
48} // namespace arene
49
50#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_FULL_EXTENT_HPP_
tag class specifying the full extent of an mdspan
Definition full_extent.hpp:18
full_extent_t()=default
explicit default constructor
Definition array_exceptions_disabled.cpp:11
ARENE_CPP14_INLINE_VARIABLE(full_extent_t, full_extent)
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10