xtd 0.2.0
typeof.h
Go to the documentation of this file.
1 #pragma once
5 #include "ustring.h"
6 #include "type_object.h"
7 
9 namespace xtd {
11  namespace __s__ {
12  template<typename type_t>
13  xtd::type_object __typeof_() noexcept {
14  return xtd::type_object(typeid(type_t));
15  }
16 
17  template<typename type_t>
18  xtd::type_object __typeof_(const type_t& value) noexcept {
19  return xtd::type_object(typeid(value));
20  }
21 
22  inline xtd::type_object __typeof_(const xtd::type& value) noexcept {
23  return xtd::type_object(value);
24  }
25  }
27 
42 #define typeof_ \
43  xtd::__s__::__typeof_
44 }
std::type_info type
Stores information about a type.
Definition: types.h:217
Contains xtd::type_object class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::ustring class.
Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
Definition: type_object.h:36