If you can read this text, it means you are not experiencing this website at its best. This website is designed for used with a standards-compliant browser.
Current version: 2.3.2
ZThreads
A platform-independent, multi-threading and synchronization library for C++
Home Documentation Downloads CVS Contact
LocalStaticInstantiation Class Reference

#include <Singleton.h>

Static Protected Member Functions

template<class T >
static void create (T *&ptr)
 

Detailed Description

Author
Eric Crahen http://www.code-foo.com
Date
<2003-07-16T17:57:45-0400>
Version
2.2.0

The LocalStaticInstantiation policy allows the creation and lifetime of an instance of a particular type to be managed using static local values. This will abide by the standard C++ rules for static objects lifetimes.

Member Function Documentation

◆ create()

static void create ( T *&  ptr)
inlinestaticprotected

Create an instance of an object, using a local static. The object will be destroyed by the system.

Parameters
ptrreference to location to receive the address of the allocated object

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