Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @file Singleton.cpp part of @file Singleton.hpp
- * @version 2
- *
- * @author Denis Colesnicov <eugustus@gmail.com>
- * @date 2017/01/15
- *
- * @copyright WTFPL
- */
- #include "Singleton.h"
- Singleton* Singleton::m_instance = nullptr;
- Singleton* Singleton::getInstance()
- {
- if(!m_instance){
- m_instance = new Singleton;
- }
- return m_instance;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement