Cbeam
Loading...
Searching...
No Matches
singleton.hpp File Reference
#include <cbeam/error/runtime_error.hpp>
#include <cbeam/logging/log_manager.hpp>
#include <cassert>
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for singleton.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cbeam::lifecycle::singleton_control
 Base class for controlling the lifecycle of all singleton instances across different types. More...
 
class  cbeam::lifecycle::singleton< T, Args >
 

Namespaces

namespace  cbeam
 The root namespace for the Cbeam library. This namespace unifies cross-platform utilities for concurrency, memory management, file handling, logging, serialization, and more. Its purpose is to provide a cohesive collection of modern C++ components that address common system-level and application-level tasks, while promoting thread-safety, interprocess communication, and stable resource handling across varied platform APIs.
 
namespace  cbeam::lifecycle
 Manages the lifecycle of singletons, item registries, and scoped variables. This namespace introduces powerful constructs such as singleton_control and item_registry for explicitly managing the instantiation and teardown of resources, minimizing global-state risks and encouraging well-defined initialization flows.