CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GetProduct.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_GetProduct_h
2 #define DataFormats_Common_GetProduct_h
3 // -*- C++ -*-
4 //
5 // Package: Common
6 // Class : GetProduct
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Oct 20 10:20:20 EDT 2007
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 
27 namespace edm {
28  namespace detail {
29  template<typename COLLECTION>
30  struct GetProduct {
32  typedef typename COLLECTION::const_iterator iter;
33  static const element_type * address( const iter & i ) {
34  return &*i;
35  }
36  };
37  }
38 }
39 
40 #endif
COLLECTION::const_iterator iter
Definition: GetProduct.h:32
int i
Definition: DBlmapReader.cc:9
static const element_type * address(const iter &i)
Definition: GetProduct.h:33
COLLECTION::value_type element_type
Definition: GetProduct.h:31
Container::value_type value_type