tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_arithmetic.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_ARITHMETIC_HPP
4#define TETL_TYPE_TRAITS_IS_ARITHMETIC_HPP
5
9
10namespace etl {
11
17template <typename T>
18struct is_arithmetic : bool_constant<is_integral_v<T> or is_floating_point_v<T>> { };
19
20template <typename T>
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_ARITHMETIC_HPP
Definition adjacent_find.hpp:8
constexpr bool is_integral_v
Definition is_integral.hpp:28
constexpr bool is_floating_point_v
Definition is_floating_point.hpp:23
constexpr bool is_arithmetic_v
Definition is_arithmetic.hpp:21
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
If T is an arithmetic type (that is, an integral type or a floating-point type) or a cv-qualified ver...
Definition is_arithmetic.hpp:18