lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Handle guard that releases the stored handle on destruction. More...
#include <handle_guard.h>
Inherits noncopyable.
Public Member Functions | |
LEAN_INLINE | handle_guard (Handle handle) |
Releases the given handle on destruction. | |
LEAN_INLINE | ~handle_guard () |
Releases the stored handle. | |
LEAN_INLINE Handle | detatch () |
Detatches the stored handle. | |
LEAN_INLINE Handle | get () const |
Retrieves the stored handle. | |
LEAN_INLINE | operator Handle () const |
Retrieves the stored handle. |
Handle guard that releases the stored handle on destruction.