tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
decay.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_DECAY_HPP
4#define TETL_TYPE_TRAITS_DECAY_HPP
5
13
14namespace etl {
15
19template <typename T>
20struct decay {
21private:
22 using U = remove_reference_t<T>;
23
24public:
29};
30
31template <typename T>
33
34} // namespace etl
35
36#endif // TETL_TYPE_TRAITS_DECAY_HPP
typename remove_reference< T >::type remove_reference_t
Definition remove_reference.hpp:28
Definition adjacent_find.hpp:8
typename conditional< B, T, F >::type conditional_t
Definition conditional.hpp:21
typename etl::decay< T >::type decay_t
Definition decay.hpp:32
remove_const_t< remove_volatile_t< T > > remove_cv_t
Definition remove_cv.hpp:22
constexpr bool is_array_v
Definition is_array.hpp:26
typename remove_extent< T >::type remove_extent_t
Definition remove_extent.hpp:30
Applies lvalue-to-rvalue, array-to-pointer, and function-to-pointer implicit conversions to the type ...
Definition decay.hpp:20
conditional_t< is_array_v< U >, remove_extent_t< U > *, conditional_t< is_function_v< U >, add_pointer_t< U >, remove_cv_t< U > > > type
Definition decay.hpp:25