Loki::CreateStatic< T > Struct Template Reference
[Creation policies]

#include <Singleton.h>

List of all members.

Static Public Member Functions

static T * Create ()
static void Destroy (T *p)

Classes

union  MaxAlign


Detailed Description

template<class T>
struct Loki::CreateStatic< T >

Implementation of the CreationPolicy used by SingletonHolder Creates an object in static memory Implementation is slightly nonportable because it uses the MaxAlign trick (an union of all types to ensure proper memory alignment). This trick is nonportable in theory but highly portable in practice.

Definition at line 304 of file Singleton.h.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 25 16:52:46 2007 for Loki by  doxygen 1.5.1-p1