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

◆ is< double >()

template<>
bool xtd::is< double > ( double  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 {
double d = 4.2;
std::cout << "d " << is<double>(d) ? "is" : "isn't" << " double" << endl;
}
bool is< double >(double value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:108
@ d
The D key.