GetFEM++  5.3
dal::singleton< T, LEV > Class Template Reference

singleton class. More...

#include <dal_singleton.h>

Static Public Member Functions

static T & instance ()
 Instance from the current thread.

Detailed Description

template<typename T, int LEV = 1>
class dal::singleton< T, LEV >

singleton class.


const foo &f = singleton<foo>::const_instance();

the LEV template arguments allows one to choose the order of destruction of the singletons: lowest LEV will be destroyed first.

Definition at line 142 of file dal_singleton.h.

The documentation for this class was generated from the following file: