tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_pointer.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_REMOVE_POINTER_HPP
4#define TETL_TYPE_TRAITS_REMOVE_POINTER_HPP
5
6namespace etl {
7
12template <typename T>
14 using type = T;
15};
16
17template <typename T>
18struct remove_pointer<T*> {
19 using type = T;
20};
21
22template <typename T>
23struct remove_pointer<T* const> {
24 using type = T;
25};
26
27template <typename T>
28struct remove_pointer<T* volatile> {
29 using type = T;
30};
31
32template <typename T>
33struct remove_pointer<T* const volatile> {
34 using type = T;
35};
36
37template <typename T>
39
40} // namespace etl
41
42#endif // TETL_TYPE_TRAITS_REMOVE_POINTER_HPP
Definition adjacent_find.hpp:8
typename remove_pointer< T >::type remove_pointer_t
Definition remove_pointer.hpp:38
T type
Definition remove_pointer.hpp:19
T type
Definition remove_pointer.hpp:24
T type
Definition remove_pointer.hpp:34
T type
Definition remove_pointer.hpp:29
Provides the member typedef type which is the type pointed to by T, or, if T is not a pointer,...
Definition remove_pointer.hpp:13
T type
Definition remove_pointer.hpp:14