Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules
Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 > Class Template Reference

#include <ScopeGuard.h>

Inheritance diagram for Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >:
Collaboration diagram for Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >:

Additional Inherited Members

- Protected Member Functions inherited from Loki::ScopeGuardImplBase
 ScopeGuardImplBase (const ScopeGuardImplBase &other) throw ()
 Copy-constructor takes over responsibility from other ScopeGuard.
 

Detailed Description

template<class Obj, typename MemFun, typename P1, typename P2>
class Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >

Implementation class for a class per-instance member function with two parameters. Each parameter is copied by value - use Loki::ByRef if you must use a reference instead. ScopeGuard ignores any value returned from the call within the Execute function.

This class has 3 standalone helper functions which create a ScopeGuard. One is MakeObjGuard, which is deprecated but provided for older code. The other two are MakeGuard overloads, one which takes a pointer to an object, and the other which takes a reference.


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