Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Singleton::CreateAlloc< Alloc >::Allocator< T > Struct Template Reference

#include <CreationPolicies.h>

Static Public Member Functions

static T * Create ()
 Creates instance. More...
 
static void Destroy (T *p)
 Destroys instance. More...
 

Static Public Attributes

static Alloc< T > allocator
 The allocator for all of these type classes. More...
 

Detailed Description

template<template< class > class Alloc>
template<class T>
struct Protium::Singleton::CreateAlloc< Alloc >::Allocator< T >

Helper interior struct for allocating resources

Parameters
Tthe class to be created

Definition at line 27 of file CreationPolicies.h.

Member Function Documentation

template<template< class > class Alloc>
template<class T >
static T* Protium::Singleton::CreateAlloc< Alloc >::Allocator< T >::Create ( )
inlinestatic

Creates instance.

Definition at line 31 of file CreationPolicies.h.

template<template< class > class Alloc>
template<class T >
static void Protium::Singleton::CreateAlloc< Alloc >::Allocator< T >::Destroy ( T *  p)
inlinestatic

Destroys instance.

Definition at line 34 of file CreationPolicies.h.

Member Data Documentation

template<template< class > class Alloc>
template<class T >
Alloc<T> Protium::Singleton::CreateAlloc< Alloc >::Allocator< T >::allocator
static

The allocator for all of these type classes.

Definition at line 29 of file CreationPolicies.h.