xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.

◆ is< decimal_t >()

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

Return true if specified value is the specified decimal_t. A Is expression takes the following form:

Library
xtd.core
Examples
int main() {
decimal_t d = 4.2;
std::cout << "d " << is<decimal_t>(d) ? "is" : "isn't" << " decimal_t" << endl;
}