Shows how to use static_object_ keyword.
#include <xtd/console>
#include <xtd/static>
namespace static_object_example {
public:
static string to_string() {
return "program";}
};
}
auto main() -> int {
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
#define static_object_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:53
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
string to_string() const noexcept override
Returns the string representation of this xtd::read_only_span <type_t> object.
Definition read_only_span.hpp:375