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

◆ is< int32 >()

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