/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Common/interface/CloneTrait.h
37 строк
919 B
W. David Dagenhart
From scram b code-format-all (clang-format)
10 май 2019, 17:51
10 май 2019, 17:51
82e0ab0
Код
Авторство
О чём код?
#ifndef DataFormats_Common_CloneTrait_h #define DataFormats_Common_CloneTrait_h #include "DataFormats/Common/interface/CopyPolicy.h" #include "DataFormats/Common/interface/OwnVector.h" #include "DataFormats/Common/interface/View.h" #include "DataFormats/Common/interface/RefToBaseVector.h" #include <vector> namespace edm { namespace clonehelper { template <typename T> struct CloneTrait; template <typename T> struct CloneTrait<std::vector<T> > { typedef CopyPolicy<T> type; }; template <typename T> struct CloneTrait<edm::OwnVector<T> > { typedef ClonePolicy<T> type; }; template <typename T> struct CloneTrait<edm::View<T> > { typedef ClonePolicy<T> type; }; template <typename T> struct CloneTrait<edm::RefToBaseVector<T> > { typedef CopyPolicy<RefToBase<T> > type; }; } // namespace clonehelper } // namespace edm #endif