Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:53

0001 #ifndef GENERS_MAPIO_HH_
0002 #define GENERS_MAPIO_HH_
0003 
0004 #include <map>
0005 #include "Alignment/Geners/interface/GenericIO.hh"
0006 
0007 namespace gs {
0008     template <class Key, class T, class Compare, class Alloc>
0009     struct InsertContainerItem<std::map<Key,T,Compare,Alloc> >
0010     {
0011         typedef std::map<Key,T,Compare,Alloc> A;
0012         static inline void insert(A& obj, const typename A::value_type& item,
0013                                   const std::size_t /* itemNumber */)
0014         {obj.insert(item);}
0015     };
0016 
0017     template <class Key, class T, class Compare, class Alloc>
0018     struct InsertContainerItem<volatile std::map<Key,T,Compare,Alloc> >
0019     {
0020         typedef std::map<Key,T,Compare,Alloc> A;
0021         static inline void insert(A& obj, const typename A::value_type& item,
0022                                   const std::size_t /* itemNumber */)
0023         {obj.insert(item);}
0024     };
0025 
0026     template <class Key, class T, class Compare, class Alloc>
0027     struct InsertContainerItem<std::multimap<Key,T,Compare,Alloc> >
0028     {
0029         typedef std::multimap<Key,T,Compare,Alloc> A;
0030         static inline void insert(A& obj, const typename A::value_type& item,
0031                                   const std::size_t /* itemNumber */)
0032         {obj.insert(item);}
0033     };
0034 
0035     template <class Key, class T, class Compare, class Alloc>
0036     struct InsertContainerItem<volatile std::multimap<Key,T,Compare,Alloc> >
0037     {
0038         typedef std::multimap<Key,T,Compare,Alloc> A;
0039         static inline void insert(A& obj, const typename A::value_type& item,
0040                                   const std::size_t /* itemNumber */)
0041         {obj.insert(item);}
0042     };
0043 }
0044 
0045 gs_specialize_template_id_TTTT(std::map, 0, 3)
0046 gs_specialize_template_id_TTTT(std::multimap, 0, 3)
0047 
0048 #endif // GENERS_MAPIO_HH_
0049