tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
add_const.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_ADD_CONST_HPP
4#define TETL_TYPE_TRAITS_ADD_CONST_HPP
5
6namespace etl {
7
11template <typename T>
12struct add_const {
13 using type = T const;
14};
15
17template <typename T>
19
20} // namespace etl
21
22#endif // TETL_TYPE_TRAITS_ADD_CONST_HPP
Definition adjacent_find.hpp:8
Provides the member typedef type which is the same as T, except it has a cv-qualifier added (unless T...
Definition add_const.hpp:12
T const type
Definition add_const.hpp:13
typename add_const< T >::type add_const_t
Definition add_const.hpp:18