Skip to content

Instantly share code, notes, and snippets.

@den385
Created April 30, 2018 10:11
Show Gist options
  • Save den385/8eb5f647d578d35f414029458f10009a to your computer and use it in GitHub Desktop.
Save den385/8eb5f647d578d35f414029458f10009a to your computer and use it in GitHub Desktop.
class X {
X(Sometype); // "ordinary constructor"
X(); // default constructor
X(const X&); // copy constructor
X(X&&); // move constructor
X& operator=(const X&); // copy assignment: clean up target and copy
X& operator=(X&&); // move assignment: clean up target and move
~X(); // destructor: clean up
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment