13 #ifndef DD4HEP_DETAIL_CONTAINERHELPERS_H
14 #define DD4HEP_DETAIL_CONTAINERHELPERS_H
36 template <
typename Q,
typename T>
40 template <
typename Q,
typename T>
45 template <
typename Q,
typename T>
49 template <
typename Q,
typename T>
54 template <
typename Q,
typename T>
58 template <
typename Q,
typename T>
63 template <
typename Q,
typename T>
67 template <
typename Q,
typename T>
72 template <
typename Q,
typename T>
73 void insert_item(std::vector<std::pair<Q,T> >& c, Q de,
const T& d) {
76 template <
typename Q,
typename T>
77 void insert_item(std::vector<std::pair<std::string,T> >& c, Q de,
const T& d) {
78 c.emplace_back(de.path(),d);
81 template <
typename Q,
typename T>
82 void insert_item(std::list<std::pair<Q,T> >& c, Q de,
const T& d) {
85 template <
typename Q,
typename T>
86 void insert_item(std::list<std::pair<std::string,T> >& c, Q de,
const T& d) {
87 c.emplace_back(de.path(),d);
90 template <
typename Q,
typename T>
91 void insert_item(std::set<std::pair<Q,T> >& c, Q de,
const T& d) {
94 template <
typename Q,
typename T>
95 void insert_item(std::set<std::pair<std::string,T> >& c, Q de,
const T& d) {
96 c.emplace(de.path(),d);
99 template <
typename Q,
typename T>
103 template <
typename Q,
typename T>
105 c.emplace(de.path(),d);
107 template <
typename Q,
typename T>
108 void insert_item(std::multimap<std::string,T>& c, Q de,
const T& d) {
109 c.emplace(de.path(),d);
112 #endif // DD4HEP_DETAIL_CONTAINERHELPERS_H