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
6namespace etl {
7
13template <typename T>
14struct add_cv {
15 using type = T const volatile;
16};
17
19template <typename T>
20using add_cv_t = typename add_cv<T>::type;
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_ADD_CV_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_cv.hpp:14
T const volatile type
Definition add_cv.hpp:15
typename add_cv< T >::type add_cv_t
Definition add_cv.hpp:20