Cpp: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

28 August 2024

  • curprev 11:5511:55, 28 August 2024Yba talk contribs 660 bytes +660 Created page with "== Move == <syntaxhighlight lang="c++"> // Online C++ compiler to run C++ program online #include <iostream> #include <optional> using namespace std; class A { public: A() { cout << "A's constructor: " << this << endl; } A(const A& a) { cout << "A's copy constructor: " <<this << " form " << &a << endl; } A(A&& a) { cout << "A's move constructor: " <<this << " form " << &a << endl; } A& operator=(const A& a) { cout << "A's assignment" <<this << " for..." Tag: 2017 source edit