Dune Core Modules (2.4.2)

singleton.hh File Reference

Useful wrapper for creating singletons. More...

#include <memory>
#include <dune/common/visibility.hh>

Go to the source code of this file.

Classes

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

Namespaces

namespace  Dune
 Dune namespace.
 

Detailed Description

Useful wrapper for creating singletons.

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

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)