tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_extent.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_REMOVE_EXTENT_HPP
4#define TETL_TYPE_TRAITS_REMOVE_EXTENT_HPP
5
7
8namespace etl {
9
14template <typename T>
16 using type = T;
17};
18
19template <typename T>
20struct remove_extent<T[]> {
21 using type = T;
22};
23
24template <typename T, size_t N>
25struct remove_extent<T[N]> {
26 using type = T;
27};
28
29template <typename T>
31
32} // namespace etl
33
34#endif // TETL_TYPE_TRAITS_REMOVE_EXTENT_HPP
Definition adjacent_find.hpp:8
typename remove_extent< T >::type remove_extent_t
Definition remove_extent.hpp:30
T type
Definition remove_extent.hpp:26
T type
Definition remove_extent.hpp:21
If T is an array of some type X, provides the member typedef type equal to X, otherwise type is T....
Definition remove_extent.hpp:15
T type
Definition remove_extent.hpp:16