xtd 0.2.0
Loading...
Searching...
No Matches

◆ is< float >()

template<>
bool xtd::is< float > ( float  value)
inline

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main() -> int {
float f = 4.2;
std::cout << "f " << is<float>(f) ? "is" : "isn't" << " float" << endl;
}
bool is< float >(float value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:130
@ f
The F key.