xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
type_of.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
string.hpp
"
6
#include "
type_object.hpp
"
7
9
namespace
xtd
{
27
template
<
typename
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
}
xtd::type_object
Represents type declarations: class types, interface types, array types, value types,...
Definition
type_object.hpp:39
xtd::expressions::operator_precedence::value
@ value
Represnets the constant operator precedence (42).
Definition
operator_precedence.hpp:30
xtd::type
std::type_info type
Stores information about a type.
Definition
type.hpp:23
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
string.hpp
Contains xtd::string alias.
type_object.hpp
Contains xtd::type_object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.