tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_fundamental.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_FUNDAMENTAL_HPP
4#define TETL_TYPE_TRAITS_IS_FUNDAMENTAL_HPP
5
10
11namespace etl {
12
16template <typename T>
17struct is_fundamental : bool_constant<is_arithmetic_v<T> or is_void_v<T> or is_null_pointer_v<T>> { };
18
19template <typename T>
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_FUNDAMENTAL_HPP
Definition adjacent_find.hpp:8
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
constexpr bool is_fundamental_v
Definition is_fundamental.hpp:20
static constexpr bool value
Definition integral_constant.hpp:10
If T is a fundamental type (that is, arithmetic type, void, or nullptr_t), provides the member consta...
Definition is_fundamental.hpp:17