xtd
0.2.0
static.cpp
Shows how to use xtd::static class.
#include <xtd/console>
#include <xtd/static>
using namespace
xtd
;
namespace
static_example {
class
program static_ {
public
:
static
ustring
to_string
() {
return
"program"
;}
};
}
auto
main()->int {
// uncomment next line cause build error with call implicitly-deleted default constructor.
//auto program = static_example::program {};
console::write_line
(
static_example::program::to_string
());
}
// This code produces the following output:
//
// program
Generated on Mon Oct 9 2023 14:41:56 for xtd by
Gammasoft
. All rights reserved.