Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
submdspan_mapping_result.hpp
Go to the documentation of this file.
1// Copyright 2026, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_SUBMDSPAN_MAPPING_RESULT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_SUBMDSPAN_MAPPING_RESULT_HPP_
7
8#include "arene/base/mdspan/is_layout_mapping.hpp"
9#include "arene/base/stdlib_choice/cstddef.hpp"
10
11namespace arene {
12namespace base {
13
14/// @brief Specializations of @c submdspan_mapping_result are returned by overloads of
15/// @c submdspan_mapping.
16/// @tparam LayoutMapping the resulting mapping type of the @c submdspan.
17template <class LayoutMapping>
19 static_assert(is_layout_mapping_v<LayoutMapping>, "LayoutMapping must meet the layout mapping requirements");
20
21 // parasoft-begin-suppress AUTOSAR-A2_10_1 "False positive: There is no identifier 'mapping' being hidden"
22 /// @brief The resulting mapping for the @c submdspan.
23 LayoutMapping mapping{};
24 // parasoft-end-suppress AUTOSAR-A2_10_1 "False positive: There is no identifier 'mapping' being hidden"
25
26 /// @brief The starting offset for the @c submdspan.
28};
29
30} // namespace base
31} // namespace arene
32
33#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_SUBMDSPAN_MAPPING_RESULT_HPP_
Definition array_exceptions_disabled.cpp:11
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10
Specializations of submdspan_mapping_result are returned by overloads of submdspan_mapping.
Definition submdspan_mapping_result.hpp:18
LayoutMapping mapping
The resulting mapping for the submdspan.
Definition submdspan_mapping_result.hpp:23
std::size_t offset
The starting offset for the submdspan.
Definition submdspan_mapping_result.hpp:27