xtd 0.2.0
Loading...
Searching...
No Matches
typeof.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "string.hpp"
6#include "type_object.hpp"
7
9namespace 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
45#define typeof_ \
46 xtd::__s__::__typeof_
47}
Represents type declarations: class types, interface types, array types, value types,...
Definition type_object.hpp:39
std::type_info type
Stores information about a type.
Definition type.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::string alias.
Contains xtd::type_object class.