Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef GENERS_SETIO_HH_
0002 #define GENERS_SETIO_HH_
0003 
0004 #include <set>
0005 #include "Alignment/Geners/interface/GenericIO.hh"
0006 
0007 namespace gs {
0008     template <class T, class Compare, class Alloc>
0009     struct InsertContainerItem<std::set<T,Compare,Alloc> >
0010     {
0011         typedef std::set<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 T, class Compare, class Alloc>
0018     struct InsertContainerItem<volatile std::set<T,Compare,Alloc> >
0019     {
0020         typedef std::set<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 T, class Compare, class Alloc>
0027     struct InsertContainerItem<std::multiset<T,Compare,Alloc> >
0028     {
0029         typedef std::multiset<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 T, class Compare, class Alloc>
0036     struct InsertContainerItem<volatile std::multiset<T,Compare,Alloc> >
0037     {
0038         typedef std::multiset<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_TTT(std::set, 0, 2)
0046 gs_specialize_template_id_TTT(std::multiset, 0, 2)
0047 
0048 #endif // GENERS_SETIO_HH_
0049