/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Utilities/interface/make_sentry.h
35 строк
782 B
W. David Dagenhart
Changes from scram build code-format-all
03 май 2019, 18:48
03 май 2019, 18:48
22c28dc
Код
Авторство
О чём код?
#ifndef Framework_Utilities_make_sentry_h #define Framework_Utilities_make_sentry_h // -*- C++ -*- // // Package: Framework/Utilities // Class : make_sentry // /**\function make_sentry make_sentry.h "FWCore/Utilities/interface/make_sentry.h" Description: Creates a std::unique_ptr from a lambda to be used as a sentry Usage: <usage> */ // // Original Author: root // Created: Fri, 19 Aug 2016 20:02:12 GMT // // system include files #include <memory> // user include files // forward declarations namespace edm { ///NOTE: if iObject is null, then iFunc will not be called template <typename T, typename F> std::unique_ptr<T, F> make_sentry(T* iObject, F iFunc) { return std::unique_ptr<T, F>(iObject, iFunc); } } // namespace edm #endif