iclonable

September 14, 2025 ยท View on GitHub

Shows how to use xtd::iequatable interface.

Sources

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

f1 {type = foo, value = 42}
f2 {type = std::unique_ptr<xtd::object, std::default_delete<xtd::object>>, value = 42}
f3 {type = std::unique_ptr<foo, std::default_delete<foo>>, value = 42}