tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_all_extents.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_TYPE_TRAITS_REMOVE_ALL_EXTENTS_HPP
5
#
define
TETL_TYPE_TRAITS_REMOVE_ALL_EXTENTS_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
9
namespace
etl
{
10
11
/// \brief If T is a multidimensional array of some type X, provides the member
12
/// typedef type equal to X, otherwise type is T. The behavior of a program that
13
/// adds specializations for remove_all_extents is undefined.
14
template
<
typename
T>
15
struct
remove_all_extents
{
16
using
type = T;
17
};
18
19
template
<
typename
T>
20
struct
remove_all_extents
<T[]> {
21
using
type =
typename
remove_all_extents
<T>::type;
22
};
23
24
template
<
typename
T, size_t N>
25
struct
remove_all_extents
<T[N]> {
26
using
type =
typename
remove_all_extents
<T>::type;
27
};
28
29
template
<
typename
T>
30
using
remove_all_extents_t =
typename
remove_all_extents
<T>::type;
31
32
}
// namespace etl
33
34
#
endif
// TETL_TYPE_TRAITS_REMOVE_ALL_EXTENTS_HPP
etl
Definition
adjacent_find.hpp:9
etl::remove_all_extents
If T is a multidimensional array of some type X, provides the member typedef type equal to X,...
Definition
remove_all_extents.hpp:15
include
etl
_type_traits
remove_all_extents.hpp
Generated on Sun Sep 7 2025 19:15:18 for tetl by
1.9.8