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

◆ is< sbyte >()

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