xtd 0.2.0
Loading...
Searching...
No Matches
object_reference_equals.cpp

Shows hows how to use xtd::object::reference_equals static method.

#include <xtd/console>
using namespace xtd;
auto main() -> int {
object* o = nullptr;
object* p = null;
object* q = new object;
console::write_line(object::reference_equals(*o, *p));
p = q;
console::write_line(object::reference_equals(*p, *q));
console::write_line(object::reference_equals(*o, *p));
delete q;
}
// This code produces the following output :
//
// true
// true
// false
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10