Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 > Class Template Reference
[Exception-safe code]

#include <ScopeGuard.h>

Inheritance diagram for Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >:
[legend]
Collaboration diagram for Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >:
[legend]

List of all members.


Detailed Description

template<class Obj, typename MemFun, typename P1>
class Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >

Implementation class for a class per-instance member function with one parameter. The 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:

Generated on Thu Jan 29 18:51:44 2009 for Loki by  doxygen 1.5.8