16  template<
typename value_t>
 
   17  inline bool is(
bool value) {
return false;}
 
   18  template<
typename value_t>
 
   19  inline bool is(decimal_t value) {
return false;}
 
   20  template<
typename value_t>
 
   21  inline bool is(
double value) {
return false;}
 
   22  template<
typename value_t>
 
   23  inline bool is(
float value) {
return false;}
 
   24  template<
typename value_t>
 
   25  inline bool is(int8_t value) {
return false;}
 
   26  template<
typename value_t>
 
   27  inline bool is(int16_t value) {
return false;}
 
   28  template<
typename value_t>
 
   29  inline bool is(int32_t value) {
return false;}
 
   30  template<
typename value_t>
 
   31  inline bool is(int64_t value) {
return false;}
 
   32  template<
typename value_t>
 
   33  inline bool is(llong_t value) {
return false;}
 
   34  template<
typename value_t>
 
   35  inline bool is(uint8_t value) {
return false;}
 
   36  template<
typename value_t>
 
   37  inline bool is(uint16_t value) {
return false;}
 
   38  template<
typename value_t>
 
   39  inline bool is(uint32_t value) {
return false;}
 
   40  template<
typename value_t>
 
   41  inline bool is(uint64_t value) {
return false;}
 
   42  template<
typename value_t>
 
   43  inline bool is(ullong_t value) {
return false;}
 
  304  template<
typename type_t>
 
  305  bool is(std::any value) {
 
  307      any_cast<type_t>(value);
 
  309    } 
catch (
const std::bad_cast&) {
 
  331  template<
typename type_t, 
typename param_t>
 
  332  bool is(
const param_t* value) {
 
  334      if (value == 
nullptr) 
return false;
 
  335      return dynamic_cast<const type_t*
>(value) != 
nullptr;
 
  336    } 
catch (
const std::bad_cast&) {
 
  347  template<
typename type_t, 
typename param_t>
 
  348  bool is(
const param_t& value) {
 
  349    return is<type_t>(&value);
 
  358  template<
typename type_t, 
typename param_t>
 
  359  bool is(param_t* value) {
 
  361      if (value == 
nullptr) 
return false;
 
  362      return dynamic_cast<type_t*
>(value) != 
nullptr;
 
  363    } 
catch (
const std::bad_cast&) {
 
  374  template<
typename type_t, 
typename param_t>
 
  375  bool is(param_t& value) {
 
  376    return is<type_t>(&value);
 
  385  template<
typename new_type_t, 
typename current_type_t>
 
  386  bool is(std::shared_ptr<current_type_t>& value) {
 
  388      unused_(dynamic_pointer_cast<new_type_t>(value));
 
  390    } 
catch (
const std::exception&) {
 
#define unused_
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when th...
Definition: unused.h:31
 
bool is< uint64_t >(uint64_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:276
 
bool is< ullong_t >(ullong_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:294
 
bool is< uint16_t >(uint16_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:240
 
bool is< float >(float value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:114
 
bool is< int64_t >(int64_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:186
 
bool is< decimal_t >(decimal_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:78
 
bool is< uint8_t >(uint8_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:222
 
bool is(std::any value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:305
 
bool is< int32_t >(int32_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:168
 
bool is< int8_t >(int8_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:132
 
bool is< uint32_t >(uint32_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:258
 
bool is< double >(double value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:96
 
bool is< llong_t >(llong_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:204
 
bool is< bool >(bool value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:60
 
bool is< std::any >(std::any value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:321
 
bool is< int16_t >(int16_t value)
Checks if the result of an expression is compatible with a given type.
Definition: is.h:150
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
 
Contains xtd::parse methods.
 
Contains xtd fundamental types.
 
Contains unused_ keyword.