Skip to content

Instantly share code, notes, and snippets.

@mrowrpurr
Last active December 11, 2022 00:23
Show Gist options
  • Save mrowrpurr/49e037b56c8137f586b696f9f79e8ea5 to your computer and use it in GitHub Desktop.
Save mrowrpurr/49e037b56c8137f586b696f9f79e8ea5 to your computer and use it in GitHub Desktop.
VS Code User Snippets
{
"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