xtd 0.2.0
Loading...
Searching...
No Matches
type_of.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "string.hpp"
6#include "type_object.hpp"
7
9namespace xtd {
27 template<class type_t>
28 auto type_of() noexcept -> const xtd::type_object& {
29 static auto instance = xtd::type_object {typeid(type_t)};
30 return instance;
31 }
50 auto type_of(const auto& value) noexcept -> xtd::type_object {return xtd::type_object {typeid(value)};}
69 inline auto type_of(const xtd::type& value) noexcept -> xtd::type_object {return xtd::type_object {value};}
70}
Represents type declarations: class types, interface types, array types, value types,...
Definition type_object.hpp:37
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.