Skip to content

Instantly share code, notes, and snippets.

@marc0x71
Created January 27, 2023 17:38
Show Gist options
  • Save marc0x71/1cf01126307183c4ef4268dd6bbeb0e5 to your computer and use it in GitHub Desktop.
Save marc0x71/1cf01126307183c4ef4268dd6bbeb0e5 to your computer and use it in GitHub Desktop.
C++ Rule of Five
class myclass {
public:
myclass()=default;
myclass(const myclass &) = default;
myclass(myclass &&) = default;
myclass &operator=(const myclass &) = default;
myclass &operator=(myclass &&) = default;
~myclass() = default;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment