HyperspaceExplorer 0.7.1
Classes | Static Public Member Functions
Loki::CreateStatic< T > Struct Template Reference

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. More...

#include <SingletonHolder.h>

List of all members.

Classes

union  MaxAlign
 Auxiliary class to find the maximum alignment size. More...

Static Public Member Functions

static T * Create ()
 create managed object
static void Destroy (T *p)
 destroy managed object

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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo