tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_reference.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
4#define TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
5
6namespace etl {
7
9template <typename T>
11 using type = T;
12};
13
15template <typename T>
16struct remove_reference<T&> {
17 using type = T;
18};
19
21template <typename T>
22struct remove_reference<T&&> {
23 using type = T;
24};
25
27template <typename T>
29
30} // namespace etl
31
32#endif // TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
typename remove_reference< T >::type remove_reference_t
Definition remove_reference.hpp:28
Definition adjacent_find.hpp:8
T type
Definition remove_reference.hpp:17
T type
Definition remove_reference.hpp:23
Definition remove_reference.hpp:10
T type
Definition remove_reference.hpp:11