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
7
namespace
etl
{
8
9
/// \ingroup type_traits
10
template
<
typename
T>
11
struct
remove_reference
{
12
using
type = T;
13
};
14
15
/// \ingroup type_traits
16
template
<
typename
T>
17
struct
remove_reference
<T&> {
18
using
type = T;
19
};
20
21
/// \ingroup type_traits
22
template
<
typename
T>
23
struct
remove_reference
<T&&> {
24
using
type = T;
25
};
26
27
/// \ingroup type_traits
28
template
<
typename
T>
29
using
remove_reference_t =
typename
remove_reference
<T>::type;
30
31
}
// namespace etl
32
33
#
endif
// TETL_TYPE_TRAITS_REMOVE_REFERENCE_HPP
etl
Definition
adjacent_find.hpp:9
etl::remove_reference
Definition
remove_reference.hpp:11
include
etl
_type_traits
remove_reference.hpp
Generated on Sun Sep 7 2025 19:15:18 for tetl by
1.9.8