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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
5#define TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
6
7namespace etl {
8
9/// \ingroup type_traits
10template <typename T>
12 using type = T;
13};
14
15/// \ingroup type_traits
16template <typename T>
17struct remove_reference<T&> {
18 using type = T;
19};
20
21/// \ingroup type_traits
22template <typename T>
23struct remove_reference<T&&> {
24 using type = T;
25};
26
27/// \ingroup type_traits
28template <typename T>
29using remove_reference_t = typename remove_reference<T>::type;
30
31} // namespace etl
32
33#endif // TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
Definition adjacent_find.hpp:9
Definition remove_reference.hpp:11