Skip to content

Instantly share code, notes, and snippets.

@uzername
uzername / gist:76a0f6fdb8f592d6dd3f8210f23e4903
Last active February 28, 2019 10:51 — forked from pazdera/gist:1098119
Singleton example in C++
/*
* Example of a singleton design pattern.
* Copyright (C) 2011 Radek Pazdera
* 2018, uzername. No memory leak; assignment and copy operators are hidden from public access.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.