tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
unwrap_reference.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_UNWRAP_REFERENCE_HPP
4#define TETL_TYPE_TRAITS_UNWRAP_REFERENCE_HPP
5
9
10namespace etl {
11
12template <typename T>
14
15template <typename T>
17
18template <typename T>
20 using type = T&;
21};
22
23template <typename T>
24struct unwrap_ref_decay : conditional_t<not is_same_v<decay_t<T>, T>, unwrap_reference<decay_t<T>>, decay<T>> { };
25
26template <typename T>
28
29} // namespace etl
30
31#endif // TETL_TYPE_TRAITS_UNWRAP_REFERENCE_HPP
Definition adjacent_find.hpp:8
typename conditional< B, T, F >::type conditional_t
Definition conditional.hpp:21
typename unwrap_ref_decay< T >::type unwrap_ref_decay_t
Definition unwrap_reference.hpp:27
reference_wrapper is a class template that wraps a reference in a copyable, assignable object....
Definition reference_wrapper.hpp:40
Definition unwrap_reference.hpp:24
T & type
Definition unwrap_reference.hpp:20
Definition unwrap_reference.hpp:16