Created
January 27, 2023 17:38
-
-
Save marc0x71/1cf01126307183c4ef4268dd6bbeb0e5 to your computer and use it in GitHub Desktop.
C++ Rule of Five
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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