Namespaces
Variants
Views
Actions

std::floating_point

From cppreference.com
< cpp‎ | concepts
Defined in header <concepts>
template < class T >
concept floating_point = std::is_floating_point_v<T>;
(since C++20)

The concept floating_point<T> is satisfied if and only if T is a floating-point type.

[edit] See also

checks if a type is a floating-point type
(class template) [edit]