CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
make_sentry.h
Go to the documentation of this file.
1 #ifndef Framework_Utilities_make_sentry_h
2 #define Framework_Utilities_make_sentry_h
3 // -*- C++ -*-
4 //
5 // Package: Framework/Utilities
6 // Class : make_sentry
7 //
16 //
17 // Original Author: root
18 // Created: Fri, 19 Aug 2016 20:02:12 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 
27 namespace edm {
29  template<typename T, typename F> std::unique_ptr<T, F> make_sentry(T* iObject, F iFunc) {
30  return std::unique_ptr<T, F>(iObject, iFunc);
31  }
32 }
33 
34 #endif
std::unique_ptr< T, F > make_sentry(T *iObject, F iFunc)
NOTE: if iObject is null, then iFunc will not be called.
Definition: make_sentry.h:29
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
long double T