CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
edm::refhelper::FindUsingAdvance< C, T > Struct Template Reference

#include <RefTraits.h>

Public Types

typedef C const & first_argument_type
 
typedef T const * result_type
 
typedef unsigned int second_argument_type
 

Public Member Functions

result_type operator() (first_argument_type iContainer, second_argument_type iIndex)
 

Detailed Description

template<typename C, typename T>
struct edm::refhelper::FindUsingAdvance< C, T >

Definition at line 13 of file RefTraits.h.

Member Typedef Documentation

template<typename C, typename T>
typedef C const& edm::refhelper::FindUsingAdvance< C, T >::first_argument_type

Definition at line 14 of file RefTraits.h.

template<typename C, typename T>
typedef T const* edm::refhelper::FindUsingAdvance< C, T >::result_type

Definition at line 16 of file RefTraits.h.

template<typename C, typename T>
typedef unsigned int edm::refhelper::FindUsingAdvance< C, T >::second_argument_type

Definition at line 15 of file RefTraits.h.

Member Function Documentation

template<typename C, typename T>
result_type edm::refhelper::FindUsingAdvance< C, T >::operator() ( first_argument_type  iContainer,
second_argument_type  iIndex 
)
inline

Definition at line 18 of file RefTraits.h.

18  {
19  typename C::const_iterator it = iContainer.begin();
20  std::advance(it, static_cast<typename C::size_type>(iIndex));
21  return it.operator->();
22  }