boxed_info
December 8, 2025 ยท View on GitHub
Shows how to use xtd::boxing methods.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
Output
[type = int, boxed type = xtd::box_integer<int>, value = 42]
[type = double, boxed type = xtd::box_floating_point<double>, value = 42.84]
[type = bool, boxed type = xtd::box<bool>, value = true]
[type = xtd::day_of_week, boxed type = xtd::enum_object<xtd::day_of_week>, value = saturday]
[type = char [9], boxed type = xtd::string, value = A string]
[type = char32_t [13], boxed type = xtd::string, value = A u32 string]
[type = xtd::date_time, boxed type = xtd::date_time, value = Thu Dec 1 20:03:07 2022]
[type = foo, boxed type = xtd::box<foo>, value = 42]