CMS 3D CMS Logo

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 #include <memory>
23 // user include files
24 
25 // forward declarations
26 
27 namespace edm {
29  template <typename T, typename F>
30  std::unique_ptr<T, F> make_sentry(T* iObject, F iFunc) {
31  return std::unique_ptr<T, F>(iObject, iFunc);
32  }
33 } // namespace edm
34 
35 #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:30
HLT enums.
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
long double T