Sauce-0.10.1
A C++ Dependency Injection Framework
|
The Singleton scope. More...
#include <sauce/scopes.h>
The Singleton scope.
Its intended use is for extremely long-lived values. Dependencies like connection pools or global configuration stores make good singletons. One might wish to create environmentally-dependent singletons such as a connection pool as early as possible: use Injector::eagerlyInject() to accomplish this.