lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions
lean::smart::handle_guard< Handle, ReleasePolicy > Class Template Reference

Handle guard that releases the stored handle on destruction. More...

#include <handle_guard.h>

Inherits noncopyable.

List of all members.

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.

Detailed Description

template<class Handle, class ReleasePolicy = close_handle_policy<Handle>>
class lean::smart::handle_guard< Handle, ReleasePolicy >

Handle guard that releases the stored handle on destruction.


The documentation for this class was generated from the following file: