Last active
December 11, 2022 00:23
-
-
Save mrowrpurr/49e037b56c8137f586b696f9f79e8ea5 to your computer and use it in GitHub Desktop.
VS Code User Snippets
This file contains hidden or 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
{ | |
"Singleton Methods": { | |
"prefix": "singleton", | |
"body": [ | |
"$1() = default;\n~$1() = default;\n$1(const $1&) = delete;\n$1($1&&) = delete;\n$1& operator=(const $1&) = delete;\n$1& operator=($1&&) = delete;\nstatic $1& GetSingleton() {\n static $1 singleton;\n return singleton;\n}" | |
], | |
"description": "Methods for singleton constructor/descructors incl operators" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment