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

◆ is< uint16 >()

template<>
bool xtd::is< uint16 > ( uint16  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 {
uint16 u = 42;
std::cout << "u " << is<uint16>(u) ? "is" : "isn't" << " uint16" << endl;
}
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23
bool is< uint16 >(uint16 value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:284
@ u
The U key.