xte::is_float<>

Defined in header <xte/trait/is_float.hpp>

Checks that a given type is a floating-point type.


Definition

template<typename T>
concept is_float = std::floating_point<T>;



Example

static_assert(xte::is_float<float>);
static_assert(xte::is_float<double>);
static_assert(not xte::is_float<int>);
[View in Compiler Explorer]