Guarded<T>
class template that stores a mutex together with the value it guards.Guarded<T, std::mutex>
is the default.Guarded<T, std::shared_mutex>
supports shared and exclusive levels of access.
Guarded<T>
class template that stores a mutex together with the value it guards.Guarded<T, std::mutex>
is the default.Guarded<T, std::shared_mutex>
supports shared and exclusive levels of access.