Shows hows how to use xtd::object::get_type method.
#include <xtd/as>
#include <xtd/console>
class my_base_class :
public object {
};
class my_derived_class: public my_base_class {
};
auto main() -> int {
auto my_base = my_base_class {};
auto my_derived = my_derived_class {};
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.hpp:45
type_t as(any_object &o)
Casts a type into another type.
Definition __as_any_object.hpp:59
@ b
The B key.
Definition console_key.hpp:90
@ o
The O key.
Definition console_key.hpp:116
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8