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

◆ is< bool >()

template<>
bool xtd::is< bool > ( bool  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 {
bool b = false;
std::cout << "b " << is<bool>(b) ? "is" : "isn't" << " bool" << endl;
}
bool is< bool >(bool value)
Checks if the result of an expression is compatible with a given type.
Definition is.h:64
@ b
The B key.