xtd 0.2.0
Loading...
Searching...
No Matches

◆ typeof_

#define typeof_

#include <xtd.core/include/xtd/typeof.h>

Used to obtain the type object of a specified type or object.

Returns
THe xtd::type_object that represent the type or the object.
Namespace
xtd
Library
xtd.core
Examples
// Get the type object of a type :
xtd::type_object type1 = typeof_<int32>();
int32 i = 42;
// Get the type object of an object :
Represents type declarations: class types, interface types, array types, value types,...
Definition type_object.h:39
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.h:45
Remarks
The typeof_ operator cannot be overloaded.
Examples
array_list2.cpp, boxed_info.cpp, file_info_move_to.cpp, iclonable.cpp, and object_get_type.cpp.