CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
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.