#include <xtd/any_object>
#include <xtd/console>
#include <xtd/date_time>
explicit foo1(
int v) : value(
v) {}
int value = 0;
string to_string() const noexcept
override {
return string::format(
"{}", value);}
bool operator <(const foo1& f) const noexcept {return value < f.value;}
};
struct foo2 {
int value = 0;
bool operator ==(
const foo2& f)
const noexcept {
return value ==
f.value;}
bool operator <(
const foo2& f)
const noexcept {
return value <
f.value;}
};
auto main() -> int {
}
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.h:28
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define typeof_
Used to obtain the type object of a specified type or object.
Definition typeof.h:45
int32 as< int32 >(std::any value)
Casts a type into another type.
Definition __as_int32.h:36
double as< double >(std::any value)
Casts a type into another type.
Definition __as_double.h:36
string as< string >(std::any value)
Casts a type into another type.
Definition __as_string.h:36
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.h:41
@ wednesday
Indicates wednesday.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10