Cbeam
Loading...
Searching...
No Matches
scoped_set.hpp File Reference
#include <atomic>
Include dependency graph for scoped_set.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cbeam::lifecycle::extract_atomic_value_type< T >
 Extracts the underlying value type T from either T or std::atomic<T>. More...
 
struct  cbeam::lifecycle::extract_atomic_value_type< std::atomic< T > >
 
class  cbeam::lifecycle::scoped_set< T >
 A helper that sets the given variable to a new value, and restores the original value on destruction. More...
 

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.