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

◆ is< xtd::byte >()

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