tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
add_volatile.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_TYPE_TRAITS_ADD_VOLATILE_HPP
5
#
define
TETL_TYPE_TRAITS_ADD_VOLATILE_HPP
6
7
namespace
etl
{
8
9
/// \brief Provides the member typedef type which is the same as T, except it
10
/// has a cv-qualifier added (unless T is a function, a reference, or already
11
/// has this cv-qualifier). Adds volatile.
12
///
13
/// \headerfile etl/type_traits.hpp
14
template
<
typename
T>
15
struct
add_volatile
{
16
using
type = T
volatile
;
17
};
18
19
/// \relates add_volatile
20
template
<
typename
T>
21
using
add_volatile_t =
typename
add_volatile
<T>::type;
22
23
}
// namespace etl
24
25
#
endif
// TETL_TYPE_TRAITS_ADD_VOLATILE_HPP
etl
Definition
adjacent_find.hpp:9
etl::add_volatile
Provides the member typedef type which is the same as T, except it has a cv-qualifier added (unless T...
Definition
add_volatile.hpp:15
include
etl
_type_traits
add_volatile.hpp
Generated on Sun Sep 7 2025 19:15:17 for tetl by
1.9.8