#include <xtd/console>
#include <xtd/iclonable>
public:
explicit foo(int value) : value_ {value} {}
string to_string()
const noexcept override {
return string::format(
"{}", value_);}
private:
int value_ = 0;
};
auto main() -> int {
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Supports cloning, which creates a new instance of a class with the same value as an existing instance...
Definition iclonable.hpp:21
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.hpp:45
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
uptr< type_t > new_uptr(args_t &&... args)
xtd::new_uptr operator. This operator creates a xtd::uptr object.
Definition new_uptr.hpp:24
type_t as(any_object &o)
Casts a type into another type.
Definition __as_any_object.hpp:59
@ f3
The F3 key.
Definition console_key.hpp:184
@ f2
The F2 key.
Definition console_key.hpp:182
@ f1
The F1 key.
Definition console_key.hpp:180
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