tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
add_cv.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_TYPE_TRAITS_ADD_CV_HPP
4
#define TETL_TYPE_TRAITS_ADD_CV_HPP
5
6
namespace
etl
{
7
13
template
<
typename
T>
14
struct
add_cv
{
15
using
type
= T
const
volatile
;
16
};
17
19
template
<
typename
T>
20
using
add_cv_t
=
typename
add_cv<T>::type
;
21
22
}
// namespace etl
23
24
#endif
// TETL_TYPE_TRAITS_ADD_CV_HPP
etl
Definition
adjacent_find.hpp:8
etl::add_cv
Provides the member typedef type which is the same as T, except it has a cv-qualifier added (unless T...
Definition
add_cv.hpp:14
etl::add_cv::type
T const volatile type
Definition
add_cv.hpp:15
etl::add_cv::add_cv_t
typename add_cv< T >::type add_cv_t
Definition
add_cv.hpp:20
include
etl
_type_traits
add_cv.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0