xtd 0.2.0
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<class type_t>
13 xtd::type_object __typeof_() noexcept {
14 return xtd::type_object(typeid(type_t));
15 }
16
17 template<class 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}
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 abstract_object.hpp:8
Contains xtd::string alias.
Contains xtd::type_object class.