CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
ResourceGuard Class Reference

Resource context guard More...

#include <cc/ResourceGuard>

Public Member Functions

 ResourceGuard (const String &resource)
 Place a scope guard for resource.
 
 ~ResourceGuard ()
 Disband the scope guard.
 

Detailed Description

Resource context guard

See also
ResourceContext

Constructor & Destructor Documentation

◆ ResourceGuard()

ResourceGuard ( const String & resource)

Place a scope guard for resource.

◆ ~ResourceGuard()

Disband the scope guard.