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
/// \ingroup type_traits
15
template
<
typename
T>
16
struct
add_volatile
{
17
using
type = T
volatile
;
18
};
19
20
/// \relates add_volatile
21
/// \ingroup type_traits
22
template
<
typename
T>
23
using
add_volatile_t =
typename
add_volatile
<T>::type;
24
25
}
// namespace etl
26
27
#
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:16
include
etl
_type_traits
add_volatile.hpp
Generated on Sat Sep 20 2025 23:50:58 for tetl by
1.9.8