Shows how to use typeof_ keyword.
#include <xtd/xtd>
auto main() -> int {
console::write_line(
typeof_<std::pair<int, double>>().name());
console::write_line(
typeof_<list<int>>());
console::write_line();
console::write_line(
typeof_((124 + 26) / 2));
console::write_line(
typeof_(std::make_pair(42, .42)).name());
console::write_line(
typeof_(list {1, 2, 3, 4, 5}));
console::write_line(
typeof_(date_time::now()).full_name());
console::write_line(
typeof_(diagnostics::stopwatch::start_new().elapsed()).name());
}
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.hpp:45