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

◆ is< int16 >()

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