#include <xtd/console>
#include <xtd/environment>
#include <xtd/iformatable>
public:
explicit foo(int value) : value_ {value} {}
string to_string(
const string&
format,
const std::locale& loc)
const override {
return string::format(string::format(
"{{:{}}}",
format), value_);}
private:
int value_ = 0;
};
auto main() -> int {
}
static void write(arg_t &&value)
Writes the text representation of the specified value to the standard output stream.
Definition console.hpp:462
static std::ostream out
Gets the standard output stream. A std::basic_ostream<char_t> that represents the standard output str...
Definition console.hpp:52
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
virtual xtd::string to_string() const noexcept
Returns a xtd::string that represents the current object.
@ f
The F key.
Definition console_key.hpp:98
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