lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions | Protected Member Functions
lean::smart::scope_annex_impl< Callable > Class Template Reference

Stores and calls a callable object on destruction. More...

#include <scope_guard.h>

Inheritance diagram for lean::smart::scope_annex_impl< Callable >:
lean::smart::scope_annex_base

List of all members.

Public Member Functions

LEAN_INLINE scope_annex_impl (const Callable &callable)
 Stores the given callable, to be called on destruction.
LEAN_INLINE ~scope_annex_impl ()
 Calls the callable stored by this guard.

Protected Member Functions

LEAN_INLINE bool valid () const
 Gets whether this instance is still valid.

Detailed Description

template<class Callable>
class lean::smart::scope_annex_impl< Callable >

Stores and calls a callable object on destruction.


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