tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_floating_point.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_FLOATING_POINT_HPP
4#define TETL_TYPE_TRAITS_IS_FLOATING_POINT_HPP
5
9
10namespace etl {
11
19template <typename T>
20struct is_floating_point : bool_constant<meta::contains_v<remove_cv_t<T>, meta::list<float, double, long double>>> { };
21
22template <typename T>
24
25} // namespace etl
26
27#endif // TETL_TYPE_TRAITS_IS_FLOATING_POINT_HPP
Definition adjacent_find.hpp:8
constexpr bool is_floating_point_v
Definition is_floating_point.hpp:23
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
static constexpr bool value
Definition integral_constant.hpp:10
Checks whether T is a floating-point type. Provides the member constant value which is equal to true,...
Definition is_floating_point.hpp:20