MIRA
Classes
CreateUsing< Alloc > Struct Template Reference

Implementation of the CreationPolicy that is used by the Singleton template. More...

#include <utils/Singleton.h>

Classes

struct  Allocator
 

Detailed Description

template<template< class > class Alloc>
struct mira::singleton::CreateUsing< Alloc >

Implementation of the CreationPolicy that is used by the Singleton template.

This policy creates the singleton object using a custom allocator, e.g.:

Singleton<...,CreateUsing<std::allocator>::Allocator, ...>
Note
The class you want to create as a singleton needs a public default constructor. In case of a private constructor you need to add this struct as a friend.

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