Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:54

0001 #ifndef DataFormats_Common_RefVectorTrait_h
0002 #define DataFormats_Common_RefVectorTrait_h
0003 
0004 namespace edm {
0005   template <typename C, typename T, typename F>
0006   class Ref;
0007   template <typename C, typename T, typename F>
0008   class RefVector;
0009   template <typename C, typename T, typename F>
0010   class RefVectorIterator;
0011   namespace refhelper {
0012     template <typename C, typename T, typename F>
0013     struct RefVectorTrait {
0014       typedef Ref<C, T, F> ref_type;
0015       typedef RefVectorIterator<C, T, F> iterator_type;
0016     };
0017 
0018     template <typename C, typename T, typename F, typename T1, typename F1>
0019     struct RefVectorTrait<RefVector<C, T, F>, T1, F1> {
0020       typedef Ref<C, T, F> ref_type;
0021       typedef RefVectorIterator<C, T, F> iterator_type;
0022     };
0023 
0024   }  // namespace refhelper
0025 }  // namespace edm
0026 
0027 #endif