Shows how to use xtd::iequatable interface.
#include <xtd/console>
#include <xtd/iequatable>
public:
explicit foo(int value) : value_ {value} {}
bool equals(
const foo& value)
const noexcept override {
return value_ == value.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...
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
Definition read_only_span.hpp:272