tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
remove_const.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_REMOVE_CONST_HPP
4#define TETL_TYPE_TRAITS_REMOVE_CONST_HPP
5
6namespace etl {
7
12template <typename Type>
14 using type = Type;
15};
16
17template <typename Type>
18struct remove_const<Type const> {
19 using type = Type;
20};
21
22template <typename T>
24
25} // namespace etl
26
27#endif // TETL_TYPE_TRAITS_REMOVE_CONST_HPP
Definition adjacent_find.hpp:8
typename remove_const< T >::type remove_const_t
Definition remove_const.hpp:23
Type type
Definition remove_const.hpp:19
Provides the member typedef type which is the same as T, except that its topmost cv-qualifiers are re...
Definition remove_const.hpp:13
Type type
Definition remove_const.hpp:14