Shows how to use xtd::delegate class.
#include <xtd/console>
#include <xtd/delegate>
console::write_line("Goodbye {}", s);
}
public:
console::write_line("Hello {}", s);
}
};
auto main()->int {
using example_function = delegate<void(
const ustring&)>;
auto instance = ::object {};
auto f = example_function {instance, &::object::hello};
return 0;
}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10