tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_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_IS_VOLATILE_HPP
5#define TETL_TYPE_TRAITS_IS_VOLATILE_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8
9namespace etl {
10
11template <typename T>
12struct is_volatile : false_type { };
13
14template <typename T>
15struct is_volatile<T volatile> : true_type { };
16
17template <typename T>
18inline constexpr bool is_volatile_v = is_volatile<T>::value;
19
20} // namespace etl
21
22#endif // TETL_TYPE_TRAITS_IS_VOLATILE_HPP
Definition adjacent_find.hpp:9
constexpr bool is_volatile_v
Definition is_volatile.hpp:18
Definition is_volatile.hpp:12