dune-common  2.3.1-rc1
Classes | Namespaces
singleton.hh File Reference

Useful wrapper for creating singletons. More...

#include <memory>

Go to the source code of this file.

Classes

class  Dune::Singleton< T >
 An adapter to turn a class into a singleton. More...
 

Namespaces

 Dune
 Dune namespace.
 

Detailed Description

Useful wrapper for creating singletons.

Inspired by the article CodeGuru: A Leak-Free Singleton class