Shows how to use self_ keyword.
#include <xtd/xtd>
struct coordinate : public istringable {
int x = 0;
int y = 0;
coordinate() noexcept = default;
coordinate(int x, int y) noexcept : x {x}, y {y} {}
coordinate& translate(int x, int y) noexcept {
}
string to_string() const noexcept override {return string::format("{{x={}, y={}}}", x, y);}
};
auto main()->int {
auto c = coordinate {200, 100};
}
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition self.hpp:20
@ c
The C key.
Definition console_key.hpp:92
void println(FILE *file)
Writes the current line terminator to the file output stream using the specified format information.
Definition println.hpp:14