SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
rwtMakeScopeGuard Functions

Functions

template<class Func >
RWScopeGuard0GImp< Func > rwtMakeScopeGuardG (Func func)
 
template<class Func , class A1 >
RWScopeGuard1GImp< Func, A1 > rwtMakeScopeGuardG (Func func, A1 a1)
 
template<class Func , class A1 , class A2 >
RWScopeGuard2GImp< Func, A1, A2 > rwtMakeScopeGuardG (Func func, A1 a1, A2 a2)
 
template<class Func , class A1 , class A2 , class A3 >
RWScopeGuard3GImp< Func, A1, A2, A3 > rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3)
 
template<class Func , class A1 , class A2 , class A3 , class A4 >
RWScopeGuard4GImp< Func, A1, A2, A3, A4 > rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3, A4 a4)
 
template<class Func , class A1 , class A2 , class A3 , class A4 , class A5 >
RWScopeGuard5GImp< Func, A1, A2, A3, A4, A5 > rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
 
template<class Func , class Obj >
RWScopeGuard0MImp< Obj, Func > rwtMakeScopeGuardM (Obj &obj, Func func)
 
template<class Func , class Obj , class A1 >
RWScopeGuard1MImp< Obj, Func, A1 > rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1)
 
template<class Func , class Obj , class A1 , class A2 >
RWScopeGuard2MImp< Obj, Func, A1, A2 > rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2)
 
template<class Func , class Obj , class A1 , class A2 , class A3 >
RWScopeGuard3MImp< Obj, Func, A1, A2, A3 > rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3)
 
template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 >
RWScopeGuard4MImp< Obj, Func, A1, A2, A3, A4 > rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3, A4 a4)
 
template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 , class A5 >
RWScopeGuard5MImp< Obj, Func, A1, A2, A3, A4, A5 > rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
 

Detailed Description

The rwtMakeScopeGuardG() and rwtMakeScopeGuardM() functions are provided as a convenience mechanism to construct scope guard instances given a function to invoke and parameters to pass to that function.

Function Documentation

◆ rwtMakeScopeGuardG() [1/6]

template<class Func >
RWScopeGuard0GImp< Func > rwtMakeScopeGuardG ( Func func)

Template function to create an RWScopeGuard set to call func() automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardG() [2/6]

template<class Func , class A1 >
RWScopeGuard1GImp< Func, A1 > rwtMakeScopeGuardG ( Func func,
A1 a1 )

Template function to create an RWScopeGuard set to call func(a1) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardG() [3/6]

template<class Func , class A1 , class A2 >
RWScopeGuard2GImp< Func, A1, A2 > rwtMakeScopeGuardG ( Func func,
A1 a1,
A2 a2 )

Template function to create an RWScopeGuard set to call func(a1,a2) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardG() [4/6]

template<class Func , class A1 , class A2 , class A3 >
RWScopeGuard3GImp< Func, A1, A2, A3 > rwtMakeScopeGuardG ( Func func,
A1 a1,
A2 a2,
A3 a3 )

Template function to create an RWScopeGuard set to call func(a1,a2,a3) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardG() [5/6]

template<class Func , class A1 , class A2 , class A3 , class A4 >
RWScopeGuard4GImp< Func, A1, A2, A3, A4 > rwtMakeScopeGuardG ( Func func,
A1 a1,
A2 a2,
A3 a3,
A4 a4 )

Template function to create an RWScopeGuard set to call func(a1,a2,a3,a4) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardG() [6/6]

template<class Func , class A1 , class A2 , class A3 , class A4 , class A5 >
RWScopeGuard5GImp< Func, A1, A2, A3, A4, A5 > rwtMakeScopeGuardG ( Func func,
A1 a1,
A2 a2,
A3 a3,
A4 a4,
A5 a5 )

Template function to create an RWScopeGuard set to call func(a1,a2,a3,a4,a5) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [1/6]

template<class Func , class Obj >
RWScopeGuard0MImp< Obj, Func > rwtMakeScopeGuardM ( Obj & obj,
Func func )

Template function to create an RWScopeGuard set to call obj.func() automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [2/6]

template<class Func , class Obj , class A1 >
RWScopeGuard1MImp< Obj, Func, A1 > rwtMakeScopeGuardM ( Obj & obj,
Func func,
A1 a1 )

Template function to create an RWScopeGuard set to call obj.func(a1) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [3/6]

template<class Func , class Obj , class A1 , class A2 >
RWScopeGuard2MImp< Obj, Func, A1, A2 > rwtMakeScopeGuardM ( Obj & obj,
Func func,
A1 a1,
A2 a2 )

Template function to create an RWScopeGuard set to call obj.func(a1,a2) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [4/6]

template<class Func , class Obj , class A1 , class A2 , class A3 >
RWScopeGuard3MImp< Obj, Func, A1, A2, A3 > rwtMakeScopeGuardM ( Obj & obj,
Func func,
A1 a1,
A2 a2,
A3 a3 )

Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [5/6]

template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 >
RWScopeGuard4MImp< Obj, Func, A1, A2, A3, A4 > rwtMakeScopeGuardM ( Obj & obj,
Func func,
A1 a1,
A2 a2,
A3 a3,
A4 a4 )

Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3,a4) automatically when control flow leaves the current scope.

◆ rwtMakeScopeGuardM() [6/6]

template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 , class A5 >
RWScopeGuard5MImp< Obj, Func, A1, A2, A3, A4, A5 > rwtMakeScopeGuardM ( Obj & obj,
Func func,
A1 a1,
A2 a2,
A3 a3,
A4 a4,
A5 a5 )

Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3,a4,a5) automatically when control flow leaves the current scope.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.