tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strided_slice.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_MDSPAN_STRIDED_SLICE_HPP
4#define TETL_MDSPAN_STRIDED_SLICE_HPP
5
6#include <etl/_config/all.hpp>
7
8namespace etl {
9
10template <typename OffsetType, typename ExtentType, typename StrideType>
12 using offset_type = OffsetType;
13 using extent_type = ExtentType;
14 using stride_type = StrideType;
15
19};
20
21template <typename OffsetType, typename ExtentType, typename StrideType>
23
24namespace detail {
25
26template <typename T>
27inline constexpr auto is_strided_slice = false;
28
29template <typename OT, typename ET, typename ST>
30inline constexpr auto is_strided_slice<etl::strided_slice<OT, ET, ST>> = true;
31
32} // namespace detail
33
34} // namespace etl
35
36#endif // TETL_MDSPAN_STRIDED_SLICE_HPP
#define TETL_NO_UNIQUE_ADDRESS
Definition attributes.hpp:41
Definition adjacent_find.hpp:8
strided_slice(OffsetType, ExtentType, StrideType) -> strided_slice< OffsetType, ExtentType, StrideType >
Definition strided_slice.hpp:11
TETL_NO_UNIQUE_ADDRESS ExtentType extent
Definition strided_slice.hpp:17
StrideType stride_type
Definition strided_slice.hpp:14
OffsetType offset_type
Definition strided_slice.hpp:12
TETL_NO_UNIQUE_ADDRESS OffsetType offset
Definition strided_slice.hpp:16
TETL_NO_UNIQUE_ADDRESS StrideType stride
Definition strided_slice.hpp:18
ExtentType extent_type
Definition strided_slice.hpp:13