Singleton class template.
More...
#include <libvisual/lv_singleton.hpp>
|
static T * | instance () |
| Returns the singleton instance. More...
|
|
static void | destroy () |
| Destroys the singleton instance.
|
|
template<class T>
class LV::Singleton< T >
Singleton class template.
- Template Parameters
-
T | Class to make singleton out of |
- Note
- Singleton is implemented using the curiously recurring template pattern (CRTP).
Definition at line 13 of file lv_singleton.hpp.
Returns the singleton instance.
- Returns
- singleton instance
Definition at line 27 of file lv_singleton.hpp.
The documentation for this class was generated from the following file: