Shows how to use static_object_ keyword.
#include <xtd/console>
#include <xtd/static>
using namespace std;
namespace static_object_example {
public:
static ustring to_string() {
return "program";}
};
}
auto main()->int {
console::write_line(static_object_example::program::to_string());
}
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define static_object_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:53
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10