Shows how to use xtd::delegate class.
#include <xtd/console>
#include <xtd/delegate>
#include <xtd/environment>
auto main() -> int {
auto writer = delegate<void(const string& str)> {[](const string & str) {
console::out << str << environment::new_line;
}};
writer("Value to write");
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10